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

Update go version to 1.22.1 and run go mod tidy #36

Merged
merged 6 commits into from
Apr 9, 2024

Conversation

toddgaunt-gs
Copy link
Collaborator

@toddgaunt-gs toddgaunt-gs commented Mar 7, 2024

Github workflow for Go has been updated as well to avoid checking development branch since we've been just merging directly to master. Go versions 1.21-1.22 are being checked, 1.13-1.20 have been dropped due to incompatibility with the new go.mod version format (X.Y.Z rather than X.Y).

Github workflow for Go has been updated as well to avoid checking
development branch since we've been just merging directly to master.
Go versions 1.16-1.22 are being check, 1.13-1.15 have been dropped.
@toddgaunt-gs toddgaunt-gs reopened this Mar 7, 2024
@toddgaunt-gs
Copy link
Collaborator Author

Need to get MacOS tests working

On different platforms the error message for the underlying TLS library
may differ. The message may also change between versions. In order to
support multiple platforms and versions, the TestCACerts test case may
now accept multiple errors messages to match against, only needing one
to match to satisfy the test case.
t.Fatalf("got %v, want no error", got)
}

// got != nil && len(wants) > 0

Choose a reason for hiding this comment

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

please remove this line

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was intentional, as it is documenting which case this is for.

contains := false
for _, w := range wants {
if strings.Contains(got.Error(), w.Error()) {
contains = true

Choose a reason for hiding this comment

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

you can break here if you like.

@toddgaunt-gs toddgaunt-gs merged commit 39a2888 into globalsign:master Apr 9, 2024
6 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.

None yet

2 participants