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 dependencies, fix Go 1.22 support #144

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Update dependencies, fix Go 1.22 support #144

merged 1 commit into from
Feb 8, 2024

Conversation

bombsimon
Copy link
Owner

Resolves #143

@coveralls
Copy link

Coverage Status

coverage: 93.637%. remained the same
when pulling e2a5fce on go-1.22
into 956337b on master.

@bombsimon
Copy link
Owner Author

bombsimon commented Feb 8, 2024

Given

package wsl

import "fmt"

func Foo() {

	fmt.Println("a")
}

Go 1.21

› docker run -it --rm -v $PWD:/code -w /code golang:1.21 bash -c "go install github.com/bombsimon/wsl/v4/cmd...@e2a5fce && wsl --fix ."
go: downloading github.com/bombsimon/wsl/v4 v4.2.1-0.20240208200709-e2a5fce99b41
go: downloading golang.org/x/tools v0.17.0
go: downloading golang.org/x/mod v0.15.0
/code/fail.go:5:13: block should not start with a whitespace

Go 1.22

› docker run -it --rm -v $PWD:/code -w /code golang:1.22 bash -c "go install github.com/bombsimon/wsl/v4/cmd...@e2a5fce && wsl --fix ."
go: downloading github.com/bombsimon/wsl/v4 v4.2.1-0.20240208200709-e2a5fce99b41
go: downloading golang.org/x/tools v0.17.0
go: downloading golang.org/x/mod v0.15.0
/code/fail.go:5:13: block should not start with a whitespace

@bombsimon bombsimon merged commit e750989 into master Feb 8, 2024
6 checks passed
@bombsimon bombsimon deleted the go-1.22 branch February 8, 2024 20:18
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.

Panic when compiled on go 1.22
2 participants