-
Notifications
You must be signed in to change notification settings - Fork 104
chore: test with go 1.20 and cleanup tooling #444
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
node_version: ['*'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Node.js ${{ matrix.node }} | ||
- name: Install Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
|
@@ -33,10 +33,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
go_version: [1.17.x, 1.18.x, 1.19.x] | ||
go_version: [1.19.x, 1.20.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go ${{ matrix.go }} | ||
- name: Install Go ${{ matrix.go_version }} | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
go_version: [1.19.x] | ||
go_version: [1.20.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go ${{ matrix.go }} | ||
- name: Install Go ${{ matrix.go_version }} | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package tools | ||
|
||
// todo: Find a better way to ignore tags or make a breaking release | ||
//go:generate gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger flatten swagger.yml -o swagger_flat.json | ||
//go:generate go run github.com/go-swagger/go-swagger/cmd/swagger flatten swagger.yml -o swagger_flat.json | ||
//go:generate sh -c "cat swagger_flat.json | jq '[., (.paths | map_values(.[] |= del(.tags?)) | {paths: .})] | add' > swagger_go.json" | ||
//go:generate gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger generate client -A netlify -f swagger_go.json -t go -c plumbing --default-scheme=https --with-flatten=full | ||
//go:generate go run github.com/go-swagger/go-swagger/cmd/swagger generate client -A netlify -f swagger_go.json -t go -c plumbing --default-scheme=https --with-flatten=full |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,10 @@ require ( | |
github.com/go-openapi/strfmt v0.19.11 | ||
github.com/go-openapi/swag v0.19.12 | ||
github.com/go-openapi/validate v0.20.0 | ||
github.com/go-swagger/go-swagger v0.23.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think you need to keep this dependency so that the the usual advice on how to do this is by creating a package called package tools
import (
_ "github.com/go-swagger/go-swagger"
) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
ah good point. i'd prefer having it in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
github.com/kyoh86/richgo v0.3.3 | ||
github.com/myitcv/gobin v0.0.14 | ||
github.com/go-swagger/go-swagger v0.24.0 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/rogpeppe/go-internal v1.9.0 // indirect | ||
github.com/rsc/goversion v1.2.0 | ||
github.com/sirupsen/logrus v1.6.0 | ||
github.com/stretchr/testify v1.7.0 | ||
github.com/stretchr/testify v1.8.2 | ||
golang.org/x/net v0.7.0 // indirect | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions which also checks for errors.