WIP: Use gitlab API to get the latest version #928
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For this code to work it needs chainguard-dev/melange#1231 code changes in melange.
To tryout locally
replace chainguard.dev/melange => ../your-local-melange-clone-path
in the end of your wolfictlgo.mod
file and rungo mod tidy
It should now use the local melange copy to build.
How it works:
for packages that are using gitlab projects we can use it to get the latest version ant its corresponding commit. for example in
gitlab-pages
package modify the update block withAnd now we can run
../wolfictl check update gitlab-pages.yaml
or any other command.NOTE: Need a GitLab token without any permission, set it in your env var
export GITLAB_TOKEN=your-gitlab-token