Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting README.md in CLI #707

Open
MilesCranmer opened this issue May 20, 2023 · 0 comments
Open

Setting README.md in CLI #707

MilesCranmer opened this issue May 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MilesCranmer
Copy link

I cannot seem to set the location of README.md with the CLI. When I go to my repo root, and run the command:

yarn all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc

I get the error:

warning package.json: No license field
$ /Users/mcranmer/node_modules/.bin/all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc
Error: ENOENT: no such file or directory, open '/Users/mcranmer/README.md'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

indicating it looks at $HOME rather than $PWD for the README.md file I have indicated in my .all-contributorsrc.

When I try to provide the --files flag, it seems to trigger a different bug:

yarn all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc --files /Users/mcranmer/Documents/PySR/README.md
yarn run v1.22.19
warning package.json: No license field
$ /Users/mcranmer/node_modules/.bin/all-contributors generate --config /Users/mcranmer/Documents/PySR/.all-contributorsrc --files /Users/mcranmer/Documents/PySR/README.md
TypeError: argv.files.map is not a function
    at startGeneration (/Users/mcranmer/node_modules/all-contributors-cli/dist/cli.js:30:33)
    at /Users/mcranmer/node_modules/all-contributors-cli/dist/cli.js:113:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@MilesCranmer MilesCranmer added the bug Something isn't working label May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant