-
Notifications
You must be signed in to change notification settings - Fork 8
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
settingsPath
is not getting expanded by the shell
#37
Comments
Sorry for the late response. This seems to be a windows problem. I think on windows the A way to work around this would be to check in the local path for local development, but do not commit this to the repo. |
Hi, I'm on macOS and we had the same error on our CI setup, which is running on ubuntu 22.04! Thanks |
I did a little digging. We are using the execa library to run the commands. I think, in general we cannot rely on the See also this discussion in the nodejs repository itself: nodejs/node#684 I would follow these arguments and not do an expansion of the I think you would need to override the settingsPath with the correct value for different environments. You can do that in the configuration (inside package.json or in releaserc files). You can write the configuration as an javascript file that exports the correct plugin configuration and determine the See: https://semantic-release.gitbook.io/semantic-release/usage/configuration#configuration-file I hope that helps and you can achieve your desired workflow! |
If the default of the |
Maybe that actually would solve your problem because maven already knows where the default file should exist. |
Hi This is what we ended up doing, in a step before semantic-release, we copy the file from the home directory (GHA example) :
to the current directory and specify the location like this in the
I'd suggest some documentation on the plugin readme would go a long way if you don't want to support the Thanks again |
I agree with @simonseyock I would set |
Hi!
I'm trying to use your plugin in a standalone way, this is my
.releaserc.json
file :Running with
GH_TOKEN=XXX npx semantic-release --no-ci
leads to the following error (irrelevant parts omitted):Error log
So, somehow, it does not expand
~
to my home directory and just append it to the current directory. Looking at the escaped commandmvn "versions:set" --batch-mode --no-transfer-progress "-DgenerateBackupPoms=false" --settings "~/.m2/settings.xml" "-DnewVersion=1.0.0"
, if I run the same thing in my terminal I get the same error, it seems like enclosing it in double quotes is not the way to go.The only way I can make it work is with a fully qualified path for now which is not an option for CI.
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: