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

Broken bumpversion rule touches package-lock.json #1310

Open
benjaoming opened this issue Aug 17, 2022 · 8 comments
Open

Broken bumpversion rule touches package-lock.json #1310

benjaoming opened this issue Aug 17, 2022 · 8 comments
Assignees
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@benjaoming
Copy link
Contributor

The package-lock.json has become invalid since 1b4263e

@agjohnson
Copy link
Collaborator

Could you expand on this issue? The package lock file is updated after an npm install

agjohnson added a commit that referenced this issue Aug 17, 2022
I think this fixes #1310, but the error isn't clear.
@agjohnson
Copy link
Collaborator

Ahh okay, more information here: bumpver replaces all instances of 1.0.0 (or whatever the string is) inside the package lock file. Clearly not what we want. My PR just updates the lock file, but bumpver will continue to do this.

@benjaoming
Copy link
Contributor Author

Closing as a duplicate of #1117

@agjohnson
Copy link
Collaborator

That issue is different, it's because there is a bumpversion package and a bump2version package. We use a different project altogether now though. I'd say this issue is valid and can be reopened.

@agjohnson
Copy link
Collaborator

The fix here is just removing the rule for package-lock.json, it doesn't need to be updated on release.

@agjohnson agjohnson reopened this Aug 19, 2022
@benjaoming
Copy link
Contributor Author

benjaoming commented Aug 19, 2022

Ack, thanks for paying attention 🙏

@agjohnson
Copy link
Collaborator

Also, opened up #1324, as we haven't used bumpversion/bump2version on other repos since testing it here. bumpver is a bit nicer and doesn't suffer from the confusion between bumpversion/bump2version 🙃

We can come back to that though, it's a sideways migration as far as the next release is concerned. The simple fix for now seems 👍

@benjaoming
Copy link
Contributor Author

TODO: Make note of later Node errors with the version scheme from our package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
2 participants