From d038df2a8826df0422e5777c9eb9bfe20e85f936 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 13:34:08 +0100 Subject: [PATCH 1/2] Added ts2019 buildtag to CI config Otherwise we are getting utils.go:119:6: `decode` is unused (deadcode) Signed-off-by: Juan Font Alonso --- .golangci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 5d7c4901..9c4d8d5f 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,6 +1,8 @@ --- run: timeout: 10m + build-tags: + - ts2019 issues: skip-dirs: From 18c0009a5139e1aae5d9766fd5c10068fdddf31a Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 15:17:31 +0100 Subject: [PATCH 2/2] Fix oidc.go linting issues Signed-off-by: Juan Font Alonso --- oidc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/oidc.go b/oidc.go index d3423977..853345a6 100644 --- a/oidc.go +++ b/oidc.go @@ -604,7 +604,6 @@ func (h *Headscale) registerMachineForOIDCCallback( namespace *Namespace, nodeKey *key.NodePublic, ) error { - if _, err := h.RegisterMachineFromAuthCallback( nodeKey.String(), namespace.Name,