From 15d4f4261a595a00cbb6376d20de2f5650603ee4 Mon Sep 17 00:00:00 2001 From: Brian Dwyer Date: Fri, 17 Sep 2021 21:09:12 -0400 Subject: [PATCH] Build on Go 1.17 --- .github/workflows/go.yml | 4 ++-- pkg/helpers_darwin.go | 1 + pkg/helpers_other.go | 1 + pkg/helpers_windows.go | 1 + pkg/service_other.go | 1 + pkg/service_windows.go | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c32a343..ea46ef2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,7 @@ jobs: name: Build strategy: matrix: - go: [1.16] + go: [1.17] runs-on: ubuntu-latest container: golang:${{ matrix.go }} steps: @@ -33,7 +33,7 @@ jobs: go test -v -race $(go list ./... | grep -v /vendor/) - name: Run GoReleaser - if: startsWith(github.ref, 'refs/tags/') && (matrix.go == 1.16) + if: startsWith(github.ref, 'refs/tags/') && (matrix.go == 1.17) uses: goreleaser/goreleaser-action@v2 with: version: latest diff --git a/pkg/helpers_darwin.go b/pkg/helpers_darwin.go index 59cfd61..f34d305 100644 --- a/pkg/helpers_darwin.go +++ b/pkg/helpers_darwin.go @@ -1,3 +1,4 @@ +//go:build darwin // +build darwin package ntlm_proxy diff --git a/pkg/helpers_other.go b/pkg/helpers_other.go index 2c7e2bf..0a2d15c 100644 --- a/pkg/helpers_other.go +++ b/pkg/helpers_other.go @@ -1,3 +1,4 @@ +//go:build !darwin && !windows // +build !darwin,!windows package ntlm_proxy diff --git a/pkg/helpers_windows.go b/pkg/helpers_windows.go index b1a0cc6..0cc04fb 100644 --- a/pkg/helpers_windows.go +++ b/pkg/helpers_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package ntlm_proxy diff --git a/pkg/service_other.go b/pkg/service_other.go index 5a40a24..c00e72d 100644 --- a/pkg/service_other.go +++ b/pkg/service_other.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package ntlm_proxy diff --git a/pkg/service_windows.go b/pkg/service_windows.go index db4f4ef..18a2496 100644 --- a/pkg/service_windows.go +++ b/pkg/service_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows // Windows Service Handler