Skip to content

Conversation

cfergeau
Copy link
Contributor

@cfergeau cfergeau commented Aug 11, 2025

This supersedes #190 and hopefully fixes the CI failures by running go mod tidy in example/*.

@cfergeau cfergeau changed the title This supersedes https://github.com/Code-Hex/vz/pull/190 and hopefully fixes the CI failures by running go mod tidy in example/*. Bump golang.org/x/crypto from 0.31.0 to 0.35.0 Aug 11, 2025
module github.com/Code-Hex/vz/example/gui-linux

go 1.22.0
go 1.23.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now Go 1.22 CI seems useless, as it is automatically updated to Go 1.23

Setting GOTOOLCHAIN=local will prevent the auto update.

@Code-Hex
Copy link
Owner

@cfergeau Could you handle this PR? 🙏

@cfergeau
Copy link
Contributor Author

@cfergeau Could you handle this PR? 🙏

I’ve updated the PR:

  • golang.org/x/crypto is now updated to 0.42 rather than 0.35
  • I’ve updated actions/setup-go to v6 as this sets GOTOOLCHAIN=local
  • I’ve changed the go versions in github actions to the latest 2 releases (1.24/1.25)

@cfergeau cfergeau changed the title Bump golang.org/x/crypto from 0.31.0 to 0.35.0 Bump golang.org/x/crypto from 0.31.0 to 0.42.0 Sep 23, 2025
This ensures GOTOOLCHAIN is set to `local`, which avoids silent
downloads of newer go versions when the version in `go.mod` is newer
than is specified in the workflow definition.

Signed-off-by: Christophe Fergeau <[email protected]>
These are the 2 versions which are currently supported upstream.

Signed-off-by: Christophe Fergeau <[email protected]>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.42.0.
- [Commits](golang/crypto@v0.31.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.42.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Christophe Fergeau <[email protected]>
By telling it there are go.mod files in example/*, hopefully this will
limit the need for commits where we run `go mod tidy` ourselves.

Signed-off-by: Christophe Fergeau <[email protected]>
With newer go versions, `go vet` reports:
```
cmd/addtags/main.go:19:25: non-constant format string in call to fmt.Fprintf
cmd/addtags/main.go:24:25: non-constant format string in call to fmt.Fprintf
```
This happens because of the use of [1:] to remove an unwanted `\n` at
the beginning of the string.
This commit switches to `Fprint` instead of `Fprintf` as there are no
substitutions to be made in the string.

Signed-off-by: Christophe Fergeau <[email protected]>
Copy link
Owner

@Code-Hex Code-Hex left a comment

Choose a reason for hiding this comment

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

Thank you!

@Code-Hex Code-Hex merged commit c17cd79 into Code-Hex:main Sep 23, 2025
8 checks passed
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