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

--execute argument not works with %s placeholder #10

Open
5 tasks done
azat-io opened this issue Jun 6, 2023 · 0 comments
Open
5 tasks done

--execute argument not works with %s placeholder #10

azat-io opened this issue Jun 6, 2023 · 0 comments

Comments

@azat-io
Copy link

azat-io commented Jun 6, 2023

Describe the bug

Hi!

Looks like --execute argument not works %s placeholder (like --commit or --tag argument).
I want to use bumpp with changelogen.

Like this:

{
  "scripts": {
    "release":  "bumpp package.json --execute=\"pnpm exec changelogen --output changelog.md -r %s && git add changelog.md\" --commit \"build: publish v%s\" --tag --all"
  }
}

But I get the following error:

ERROR  ENOENT: no such file or directory, chdir '/Users/azat/Developer/eslint-plugin-perfectionist' -> '/Users/azat/Developer/eslint-plugin-perfectionist/&&'                                                                                     6:48:17 PM

  at wrappedChdir (node:internal/bootstrap/switches/does_own_process_state:112:14)
  at process.chdir (node:internal/worker:108:5)
  at Module.defaultMain (node_modules/.pnpm/changelogen@0.5.3/node_modules/changelogen/dist/chunks/default.mjs:21:11)
  at node_modules/.pnpm/changelogen@0.5.3/node_modules/changelogen/dist/cli.mjs:22:56
  at async main (node_modules/.pnpm/changelogen@0.5.3/node_modules/changelogen/dist/cli.mjs:22:3)

Reproduction

https://github.com/azat-io/eslint-plugin-perfectionist

System Info

System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.68 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.2.0 - ~/.asdf/installs/nodejs/20.2.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.6.6 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Chrome: 114.0.5735.106
    Firefox: 111.0.1
    Safari: 16.5

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant