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

Add a way to "rename" a package's version #1070

Open
jrray opened this issue Jul 12, 2024 · 1 comment
Open

Add a way to "rename" a package's version #1070

jrray opened this issue Jul 12, 2024 · 1 comment
Labels
agenda item Items to be brought up at the next dev meeting

Comments

@jrray
Copy link
Collaborator

jrray commented Jul 12, 2024

The intended use case is for taking a pre-release build and making it "official" (de-pre it).

Say you've built my-pkg/1.2.3-pre.1 and after testing you're happy with it and want to make it my-pkg/1.2.3. You could update the version and rebuild the package, but this introduces uncertainty that you'll get a build again that matches what you were testing before. For example, since the build environment is re-solved you could end up with different versions of your build dependencies and end up with a different binary.

A version rename tool could be used improperly in all sorts of ways, but it is the best way to accomplish this specific use case. There was a request to be able to rename from one pre-release version to another pre-release version because it was causing problems. There will always be odd ball use cases that look like they could be dangerous in general but would be safe in some circumstances.

@jrray jrray added the agenda item Items to be brought up at the next dev meeting label Jul 12, 2024
@rydrman
Copy link
Collaborator

rydrman commented Sep 4, 2024

From the meeting today:

  • I would also like to be able to transfer packages, maybe it's not related but a possible copy functionality could do this
  • is there not a folder or metadata in the package with the version that would affect the filesystem hash?
  • there is so that would need to be updated
  • how can we be sure that the build script wouldn't have behaved differently - maybe that's at the risk of the user?
  • or we limit it to removing pre/post tags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agenda item Items to be brought up at the next dev meeting
Projects
None yet
Development

No branches or pull requests

2 participants