{"id":16419189,"url":"https://github.com/cameronhunter/berry-bin-bug","last_synced_at":"2026-05-13T01:33:17.109Z","repository":{"id":145461487,"uuid":"237832239","full_name":"cameronhunter/berry-bin-bug","owner":"cameronhunter","description":"Repository demonstrating a Yarn 2.0 issue","archived":false,"fork":false,"pushed_at":"2020-02-02T21:16:39.000Z","size":1098,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T13:32:10.366Z","etag":null,"topics":["berry","issue","yarn"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cameronhunter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-02T20:30:55.000Z","updated_at":"2020-02-02T21:16:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"271208ce-d78e-41d2-9341-f0f796c8a176","html_url":"https://github.com/cameronhunter/berry-bin-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cameronhunter/berry-bin-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronhunter%2Fberry-bin-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronhunter%2Fberry-bin-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronhunter%2Fberry-bin-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronhunter%2Fberry-bin-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameronhunter","download_url":"https://codeload.github.com/cameronhunter/berry-bin-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronhunter%2Fberry-bin-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["berry","issue","yarn"],"created_at":"2024-10-11T07:16:11.597Z","updated_at":"2026-05-13T01:33:17.041Z","avatar_url":"https://github.com/cameronhunter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yarn Berry bin bug\n\nSee [issue on yarnpkg/berry](https://github.com/yarnpkg/berry/issues/882).\n\nWhen a project defines a `bin` field to create a binary, yarn 2.0 seems to\nexpect the file to be authored in JS rather than executing it using its shebang.\n\nYarn `2.0.0-rc.28` is bundled in this example repo showing the issue.\n\n```sh\n$ yarn --version\n2.0.0-rc.28\n```\n\n## How to reproduce\n\n```sh\n$ yarn install\n$ yarn berry-bin-bug\n/Users/chunter/workspace/github/cameronhunter/berry-bin-bug/bin/berry-bin-bug:3\necho \"Hello world!\"\n     ^^^^^^^^^^^^^^\n\nSyntaxError: Unexpected string\n    at Module._compile (internal/modules/cjs/loader.js:895:18)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)\n    at Module.load (internal/modules/cjs/loader.js:815:32)\n    at Function.module_1.Module._load (/Users/chunter/workspace/github/cameronhunter/berry-bin-bug/.pnp.js:13519:14)\n    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)\n    at internal/main/run_main_module.js:17:11\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronhunter%2Fberry-bin-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcameronhunter%2Fberry-bin-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronhunter%2Fberry-bin-bug/lists"}