From a1dc600c8c619c7685d57f36c1aa98b08052cbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Di=CC=81az=20Marco?= Date: Fri, 22 Apr 2022 11:33:55 +0200 Subject: [PATCH 1/4] Update Go to 1.18. --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 5d7602f922..d7574a5d88 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/netbox-community/go-netbox -go 1.16 +go 1.18 require ( github.com/go-openapi/errors v0.20.1 From c66b1ac97aae891a4acb45235d06ef2238782d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Di=CC=81az=20Marco?= Date: Fri, 22 Apr 2022 11:34:17 +0200 Subject: [PATCH 2/4] Update GitHub workflow to use Go supported versions. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 599bd32234..5bb42acd20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - go: ["1.15.x", "1.17.x"] + go: ["1.17.x", "1.18.x"] steps: - name: Checkout uses: actions/checkout@v2 From 2e66204f26f8f67b553cb38e1b6f8e3931190c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Di=CC=81az=20Marco?= Date: Fri, 22 Apr 2022 11:36:31 +0200 Subject: [PATCH 3/4] Improve Makefile. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0d8b21071b..fcd8872695 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ deps: go mod download - GO111MODULE=off go get -u github.com/myitcv/gobin + go install github.com/go-swagger/go-swagger/cmd/swagger@latest generate: deps - gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger generate client --copyright-file=copyright_header.txt + swagger generate client --target=./netbox --copyright-file=copyright_header.txt clean: rm -rf netbox/client netbox/models From e823c5559e100a4bd54245c8e799c443aa5dbda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Di=CC=81az=20Marco?= Date: Fri, 22 Apr 2022 11:40:03 +0200 Subject: [PATCH 4/4] Remove ".gobincache" from ".gitignore". --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index b6badc5408..e69de29bb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -.gobincache/