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 dependencies #109

Closed
wants to merge 2 commits into from

Conversation

priteau
Copy link

@priteau priteau commented Feb 21, 2022

This includes go-jira v1.15.0 supporting Personal Access Tokens (PATs).

@mrueg
Copy link
Member

mrueg commented Feb 28, 2022

@priteau looks like the linting/tests failed, would you mind taking a look?

https://github.com/andygrunwald/go-jira/releases/tag/v1.15.1 was released with a couple of additional fixes.

@priteau priteau force-pushed the update-go-deps branch 2 times, most recently from 435669a to fe80e79 Compare February 28, 2022 11:33
@priteau
Copy link
Author

priteau commented Feb 28, 2022

There was a deprecation in go-kit/kit, but I am still hitting errcheck issues. Do you know what should go into .errcheck_excludes.txt to avoid them?

@mrueg
Copy link
Member

mrueg commented Feb 28, 2022

Something with the go-jira packaging might have changed. I believe the go-jira imports need to be updated and be used like this now:
jira "github.com/andygrunwald/go-jira"

See also: andygrunwald/go-jira#428

This includes go-jira v1.15.1 supporting Personal Access Tokens (PATs).

Update go-jira imports [1] and go-kit imports [2].

[1] andygrunwald/go-jira#428
[2] go-kit/kit#1173

Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
@priteau
Copy link
Author

priteau commented Mar 1, 2022

I think we may be hitting this? golangci/golangci-lint#2195

The GitHub action uses 1.14.x, while locally I have 1.17.6, which may explain the difference in test output.

We are trying to avoid the following linting errors:

Error: pkg/notify/notify.go:158:4: issueComp declared but not used (typecheck)
			issueComp, err := r.tmpl.Execute(component, data)
			^
Error: pkg/notify/notify.go:168:7: k declared but not used (typecheck)
		for k, v := range data.GroupLabels {
		    ^
@priteau
Copy link
Author

priteau commented Mar 2, 2022

I am not sure it makes sense to bump Go version requirements just for a linting issue. go-jira itself still claims to support 1.14. I am trying to run tests with 1.15 now, then I may try adding //nolint comments.

@mrueg
Copy link
Member

mrueg commented Mar 2, 2022

Unrelated to this change, I think it makes sense if the project is built with a supported version of golang (which at this point is 1.16 and 1.17).

@rporres
Copy link
Contributor

rporres commented Mar 4, 2022

This will certainly conflict with the PR I've sent adding support for PAT in jiralert 😅 #110

@priteau
Copy link
Author

priteau commented May 20, 2022

Closing since go-jira was updated to v1.15.1 in #110.

@priteau priteau closed this May 20, 2022
@priteau priteau deleted the update-go-deps branch May 20, 2022 13:23
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