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

Integrate with apko-0.13+ . Pass --lockfile to apko to get hermetic (re)builds. #41

Conversation

sfc-gh-ptabor
Copy link
Collaborator

@sfc-gh-ptabor sfc-gh-ptabor commented Dec 11, 2023

Integrate with apko-0.12+ . Pass --lockfile to apko to get hermetic (re)builds.

This is rules_apko part of: #13
that integrates:

apko/translate_lock.bzl Outdated Show resolved Hide resolved
Copy link
Collaborator

@thesayyn thesayyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is a breaking change as somebody might still be registering an old version of apko as a toolchain.

Eventhough rules_apko is not in widespread usage we should still respect semver.

@sfc-gh-ptabor sfc-gh-ptabor force-pushed the 20231211-apko12-resolved-file-support branch from 9244eb1 to 4d381e3 Compare December 12, 2023 13:37
@sfc-gh-ptabor sfc-gh-ptabor changed the title Integrate with apko-0.12+ . Pass --resolved-file to apko to get hermetic (re)builds. Integrate with apko-0.13+ . Pass --resolved-file to apko to get hermetic (re)builds. Dec 12, 2023
@sfc-gh-ptabor sfc-gh-ptabor force-pushed the 20231211-apko12-resolved-file-support branch 2 times, most recently from ffe4a9d to f704714 Compare December 12, 2023 13:47
Signed-off-by: Piotr Tabor <piotr.tabor@snowflake.com>
@sfc-gh-ptabor sfc-gh-ptabor force-pushed the 20231211-apko12-resolved-file-support branch from f704714 to 9df0d61 Compare December 12, 2023 13:49
@sfc-gh-ptabor sfc-gh-ptabor force-pushed the 20231211-apko12-resolved-file-support branch from 9df0d61 to 9a3e878 Compare December 12, 2023 13:57
…metic (re)builds.

Signed-off-by: Piotr Tabor <piotr.tabor@snowflake.com>
@sfc-gh-ptabor sfc-gh-ptabor force-pushed the 20231211-apko12-resolved-file-support branch from 9a3e878 to 06e9f0d Compare December 12, 2023 14:04
@sfc-gh-ptabor sfc-gh-ptabor changed the title Integrate with apko-0.13+ . Pass --resolved-file to apko to get hermetic (re)builds. Integrate with apko-0.13+ . Pass --lockfile to apko to get hermetic (re)builds. Dec 12, 2023
…ko13.

Signed-off-by: Piotr Tabor <piotr.tabor@snowflake.com>
@sfc-gh-ptabor
Copy link
Collaborator Author

@thesayyn -> The PR is ready for another pass. Thank you.

@sfc-gh-ptabor
Copy link
Collaborator Author

@imjasonh @thesayyn -> I updated the PR to point on the just released apko-0.13.1. Please approve the test and take a look. Thank you.

apko/toolchain.bzl Outdated Show resolved Hide resolved
@thesayyn
Copy link
Collaborator

@sfc-gh-ptabor tests are failing.

@sfc-gh-ptabor
Copy link
Collaborator Author

sfc-gh-ptabor commented Dec 22, 2023

@thesayyn . Thank you for the approval. Refreshed the lock files. I hope it will pass now... but I'm not sure as I cannot run full CICD myself (need approval). PTAL.

@imjasonh imjasonh enabled auto-merge (squash) December 26, 2023 15:03
auto-merge was automatically disabled December 28, 2023 19:30

Head branch was pushed to by a user without write access

@imjasonh imjasonh merged commit 620fba9 into chainguard-dev:main Dec 31, 2023
8 checks passed
imjasonh pushed a commit that referenced this pull request Jan 18, 2024
…th apko 0.13+) (#47)

This PR is on top of:
#41.
Please review only the last commit: [Rename .resolve targets
(deprecated) to .lock
targets.](7ff68b2)

Rename .resolve targets (deprecated) to .lock targets.
    
This makes the naming uniform across apko (0.13+) and rules_apko. 
The old rules still exist, but emit a warning.

From now going on, please use: `*.lock.json` file naming instead of
`*.resolved.json`.
Also `bazel run .../image.resolve` rule is deprecated and instead `bazel
run .../image.lock` should be used.
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.

3 participants