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

Pin the package version with ~ rather than =. #1579

Merged

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Oct 21, 2024

commit 57e3f4c (via #1518)
broke test of wolfi python packages where they relied on the test of the
'main' package to install a subpackage that provides the main package.

For an example, see:
https://github.com/wolfi-dev/os/blob/cd5e90dc01bc7d5/py3-fastbencode.yaml

The main package is provider-priority 0 and the subpackages
have specific provider-priorities > 0.

With the pkg=version change, we got the main package installed, which
is empty. Using ~ gets the desired behavior even for historic
packages.

@smoser smoser force-pushed the fix/version-with-tilda-not-dash branch from 2f1c968 to a794f11 Compare October 21, 2024 15:59
imjasonh
imjasonh previously approved these changes Oct 21, 2024
commit 57e3f4c (via chainguard-dev#1518)
broke test of wolfi python packages where they relied on the test of the
'main' package to install a subpackage that `provides` the main package.

For an example, see:
https://github.com/wolfi-dev/os/blob/cd5e90dc01bc7d5/py3-fastbencode.yaml

The main package is provider-priority 0 and the subpackages
have specific provider-priorities > 0.

With the pkg=version change, we got the main package installed, which
is empty.  Using ~ gets the desired behavior even for historic
packages.
@imjasonh imjasonh merged commit 6614157 into chainguard-dev:main Oct 21, 2024
36 checks passed
smoser added a commit to smoser/melange that referenced this pull request Oct 21, 2024
…1579 and chainguard-dev#1518)

1518 was added with good reason, but it changed behavior
that many wolfi tests depended on (see chainguard-dev#1579) for that use case.

Revert both of those changes, restoring behavior to the way it was
last week and thus restoring functional test of may wolfi packages.

Signed-off-by: Scott Moser <smoser@brickies.net>
smoser added a commit to smoser/melange that referenced this pull request Oct 21, 2024
…1579 and chainguard-dev#1518)

PR chainguard-dev#1518 was added with good reason, but it changed behavior
that many wolfi tests depended on (see chainguard-dev#1579) for that use case.

Revert both of those changes, restoring behavior to the way it was
last week and thus restoring functional test of may wolfi packages.

Signed-off-by: Scott Moser <smoser@brickies.net>
xnox added a commit that referenced this pull request Oct 21, 2024
Do not specify versions during 'melange test' (Revert #1579 and #1518)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants