-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
lerna publish ends up in Error 128 on AWS CodeBuild after successfully published package #3022
Comments
I can confirm that this is a persistent issue. I added One possible source is that lerna still tries to use the lerna/commands/publish/index.js Lines 294 to 306 in 6cb8ab2
lerna/core/child-process/index.js Lines 157 to 171 in 6cb8ab2
Logs before publishing:
Logs after publishing:
Contents of
|
This is not going to be unique to CodeBuild. It will happen anywhere the consumer is not using git. |
It happend when i use lerna publish in ci , and i fixed it |
We want to use AWS CodeBuild for publishing our lerna packages. After lerna successfully published our packages it ends up in an Error 128 without any further log information.
We use
lerna publish from-package --git-head ${CODEBUILD_RESOLVED_SOURCE_VERSION} --no-git-reset --yes
in buildspec.yml. I also tried to install git in CodeBuild using
git-credential-helper: yes
.On CodeBuild there is no .git folder. So I could reproduce the problem on renaming my .git folder locally.
I had a look at the Codebase and saw that in bump from-git as well as in bump from-package the function
verifyWorkingTreeClean
is called. This function will fail on CodeBuild because of no existing .git folder.Expected Behavior
Current Behavior
Possible Solution
Create an option for suppressing the
verifyWorkingTreeClean
function likelerna publish --no-verify-working-tree-clean
.Steps to Reproduce (for bugs)
lerna publish from-package --git-head ${CODEBUILD_RESOLVED_SOURCE_VERSION} --no-git-reset --yes
in AWS CodeBuild from buildspec.yml, MAKEFILE or package.json.lerna.json
Context
Deploy packages with lerna in AWS CodeBuild.
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: