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

Feature request: Pin a version #1941

Closed
dsbert opened this issue Jan 4, 2018 · 2 comments
Closed

Feature request: Pin a version #1941

dsbert opened this issue Jan 4, 2018 · 2 comments

Comments

@dsbert
Copy link
Contributor

dsbert commented Jan 4, 2018

Add the ability to pin a package to a particular version.

When running scoop status, the latest version should be displayed with a note indicating the software is pinned to the current version.

Running scoop update * or scoop update [package] will not update the pinned package.

@r15ch13
Copy link
Member

r15ch13 commented Jan 4, 2018

Every installed program has an install.json. Adding a property and checking for it should be easy. A new option for install or a separate pin command could be used to add the property.

@JaneX8
Copy link

JaneX8 commented Oct 10, 2024

This feature request was closed by a merge of another feature.

I like the hold/unhold feature but it's not the same as version pinning. See this Hadolint (a Dockerfile linter) documentation for an example of version pinning in Dockerfiles that use Alpine.

Problematic code: apk --no-cache add foo
Partial pin glob: apk --no-cache add foo=~1.2.3
Exact pin: apk --no-cache add foo=1.2.3

Pinning exact versions can cause future builds to suddenly fail if that version is no longer available. Use with caution.

According to the Docker best practices rationale:

Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes in required packages.

I'd really like to see a similar version pinning mechanism for scoop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants