Skip to content

Conversation

@cw-hagiwara
Copy link
Contributor

Fix automatic version updates with mod not working in konstraint.

@cw-hagiwara
Copy link
Contributor Author

check dependencies.konstraint

localhost konstraint % mod list-dependency-versions konstraint
0.20.0
0.21.0
0.22.0
0.22.1
0.22.2
0.23.0
0.24.0
0.25.0
0.25.1
0.26.0
0.26.1
0.27.0
0.27.1
0.28.0
0.29.0
0.29.1
0.30.0
0.31.0
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.43.0
localhost konstraint %

execute mod build

localhost konstraint % git status
On branch konstraint_fix-mod-configuration
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    variant.lock
	modified:   variant.mod

no changes added to commit (use "git add" and/or "git commit -a")
localhost konstraint %
localhost konstraint % mod build
localhost konstraint %
localhost konstraint % git status
On branch konstraint_fix-mod-configuration
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   Dockerfile
	modified:   goss/goss.yaml
	deleted:    variant.lock
	modified:   variant.mod

no changes added to commit (use "git add" and/or "git commit -a")
localhost konstraint %

check diff: Dockerfile

localhost konstraint % git diff Dockerfile
diff --git a/konstraint/Dockerfile b/konstraint/Dockerfile
index e7261fde..88ed7dd2 100644
--- a/konstraint/Dockerfile
+++ b/konstraint/Dockerfile
@@ -1,6 +1,6 @@
 FROM alpine:3.19
 ARG TARGETARCH
-ARG KONSTRAINT_VERSION=0.38.0
+ARG KONSTRAINT_VERSION=0.43.0
 LABEL version="${KONSTRAINT_VERSION}"
 LABEL maintainer="sakamoto@chatwork.com"

localhost konstraint %
  • OK: KONSTRAINT_VERSION is up to date

check diff: goss/goss.yaml

localhost konstraint % git diff goss/goss.yaml
diff --git a/konstraint/goss/goss.yaml b/konstraint/goss/goss.yaml
index 58157b78..7567a466 100644
--- a/konstraint/goss/goss.yaml
+++ b/konstraint/goss/goss.yaml
@@ -6,4 +6,4 @@ command:
   /usr/local/bin/konstraint --version:
     exit-status: 0
     stdout:
-      - v0.38.0
+      - v0.43.0
localhost konstraint %
  • OK: "konstraint --version:" is up to date

@cw-hagiwara
Copy link
Contributor Author

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