{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/659","labels_url":"https://api.github.com/repos/stedolan/jq/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/659/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/659/events","html_url":"https://github.com/stedolan/jq/issues/659","id":53057626,"number":659,"title":"jqnpm - a package manager built for jq as an example implementation","user":{"login":"joelpurra","id":1398544,"avatar_url":"https://avatars.githubusercontent.com/u/1398544?v=3","gravatar_id":"","url":"https://api.github.com/users/joelpurra","html_url":"https://github.com/joelpurra","followers_url":"https://api.github.com/users/joelpurra/followers","following_url":"https://api.github.com/users/joelpurra/following{/other_user}","gists_url":"https://api.github.com/users/joelpurra/gists{/gist_id}","starred_url":"https://api.github.com/users/joelpurra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelpurra/subscriptions","organizations_url":"https://api.github.com/users/joelpurra/orgs","repos_url":"https://api.github.com/users/joelpurra/repos","events_url":"https://api.github.com/users/joelpurra/events{/privacy}","received_events_url":"https://api.github.com/users/joelpurra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stedolan/jq/milestones/3","labels_url":"https://api.github.com/repos/stedolan/jq/milestones/3/labels","id":682789,"number":3,"title":"1.5 release","description":"jq 1.5 should get all the features that won't be going into 1.4:\r\n\r\n - loadable modules\r\n - better jq library support\r\n - regexp/glob support\r\n - I/O primitives\r\n - generator primitives: `while`,\r\n - generator utils: `foreach`, `limit`\r\n - `try EXP catch EXP` (exceptions)\r\n - bignum support\r\n - anything else?","creator":{"login":"nicowilliams","id":604851,"avatar_url":"https://avatars.githubusercontent.com/u/604851?v=3","gravatar_id":"","url":"https://api.github.com/users/nicowilliams","html_url":"https://github.com/nicowilliams","followers_url":"https://api.github.com/users/nicowilliams/followers","following_url":"https://api.github.com/users/nicowilliams/following{/other_user}","gists_url":"https://api.github.com/users/nicowilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nicowilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicowilliams/subscriptions","organizations_url":"https://api.github.com/users/nicowilliams/orgs","repos_url":"https://api.github.com/users/nicowilliams/repos","events_url":"https://api.github.com/users/nicowilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nicowilliams/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":62,"state":"open","created_at":"2014-06-05T23:19:44Z","updated_at":"2014-12-30T17:49:54Z","due_on":null,"closed_at":null},"comments":32,"created_at":"2014-12-29T17:50:11Z","updated_at":"2015-01-01T02:21:16Z","closed_at":null,"body":"@nicowilliams, @pkoppstein, @wtlangford, others:\r\n\r\nHacked together a package manager for you to play with:\r\nhttps://github.com/joelpurra/jqnpm\r\n\r\nIt works within the current `import` limitations such as:\r\n- `jq` not being aware of there being an official package manager, as `npm` is treated as for `node`.\r\n- Library search paths only being relative to the initial script called, not the script calling `import`.\r\n\r\n```bash\r\ncd tests/execute-flat-dependencies/local-project/\r\n                                    # Set a local package cache folder for the tests in this folder.\r\nexport JQNPM_PACKAGES_CACHE=\"$PWD/../package-cache\"\r\njqnpm install                       # Install recursively in ./.jq/\r\ntree -a                             # See installation results.\r\njqnpm execute -n                    # Temporary wrapper for jq, but with managed dependencies.\r\n```\r\n\r\n- No remote repo cloning/fetching yet.\r\n- Does not respect dependency versions yet.\r\n\r\nSee also previous discussions in #491, #566, #535 regarding my preferred package manager style. Let me know if you have any questions, fixes, workarounds!"},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/68478717","html_url":"https://github.com/stedolan/jq/issues/659#issuecomment-68478717","issue_url":"https://api.github.com/repos/stedolan/jq/issues/659","id":68478717,"user":{"login":"nicowilliams","id":604851,"avatar_url":"https://avatars.githubusercontent.com/u/604851?v=3","gravatar_id":"","url":"https://api.github.com/users/nicowilliams","html_url":"https://github.com/nicowilliams","followers_url":"https://api.github.com/users/nicowilliams/followers","following_url":"https://api.github.com/users/nicowilliams/following{/other_user}","gists_url":"https://api.github.com/users/nicowilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nicowilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicowilliams/subscriptions","organizations_url":"https://api.github.com/users/nicowilliams/orgs","repos_url":"https://api.github.com/users/nicowilliams/repos","events_url":"https://api.github.com/users/nicowilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nicowilliams/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T02:21:16Z","updated_at":"2015-01-01T02:21:16Z","body":"Similarly renaming pack3's and pack4's .jq files finally makes running the deep example work:\r\n\r\n    $ ../jq/jq -n -L $PWD/tests/execute-deep-dependencies/package-source/ -f tests/execute-deep-dependencies/local-project/src/main.jq\r\n    \"abc123def456ghi789\"\r\n    $ \r\n"}}