Skip to content

Commit 15fcd0c

Browse files
authored
Merge branch 'master' into use_idp_name_as_credentials_key
2 parents c52b819 + df3f6cf commit 15fcd0c

File tree

5 files changed

+10
-20
lines changed

5 files changed

+10
-20
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: golangci-lint
4747
uses: golangci/golangci-lint-action@v2
4848
with:
49-
version: v1.42.0
49+
version: v1.45.2
5050

5151
release-build:
5252
name: release-build

Makefile

+5-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARCH=$(shell uname -m)
33
VERSION=2.28.0
44
ITERATION := 1
55

6-
GOLANGCI_VERSION = 1.32.0
6+
GOLANGCI_VERSION = 1.45.2
77
GORELEASER_VERSION = 0.157.0
88

99
SOURCE_FILES?=$$(go list ./... | grep -v /vendor/)
@@ -14,31 +14,19 @@ BIN_DIR := $(CURDIR)/bin
1414

1515
ci: prepare test
1616

17-
$(BIN_DIR)/golangci-lint: $(BIN_DIR)/golangci-lint-${GOLANGCI_VERSION}
18-
@ln -sf golangci-lint-${GOLANGCI_VERSION} $(BIN_DIR)/golangci-lint
19-
$(BIN_DIR)/golangci-lint-${GOLANGCI_VERSION}:
20-
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint bash -s -- v${GOLANGCI_VERSION}
21-
@mv $(BIN_DIR)/golangci-lint $@
22-
23-
$(BIN_DIR)/goreleaser: $(BIN_DIR)/goreleaser-${GORELEASER_VERSION}
24-
@ln -sf goreleaser-${GORELEASER_VERSION} $(BIN_DIR)/goreleaser
25-
$(BIN_DIR)/goreleaser-${GORELEASER_VERSION}:
26-
@curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | BINARY=goreleaser bash -s -- v${GORELEASER_VERSION}
27-
@mv $(BIN_DIR)/goreleaser $@
28-
2917
mod:
3018
@go mod download
3119
@go mod tidy
3220
.PHONY: mod
3321

34-
lint: $(BIN_DIR)/golangci-lint
22+
lint:
3523
@echo "--- lint all the things"
36-
@$(BIN_DIR)/golangci-lint run ./...
24+
@docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v$(GOLANGCI_VERSION) golangci-lint run -v
3725
.PHONY: lint
3826

39-
lint-fix: $(BIN_DIR)/golangci-lint
27+
lint-fix:
4028
@echo "--- lint all the things"
41-
@$(BIN_DIR)/golangci-lint run --fix ./...
29+
@docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v$(GOLANGCI_VERSION) golangci-lint run -v --fix
4230
.PHONY: lint-fix
4331

4432
fmt: lint-fix

pkg/provider/googleapps/googleapps.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (kc *Client) loadFirstPage(loginDetails *creds.LoginDetails) (string, url.V
238238
if loginPageV1 {
239239
// Login page v1
240240
postForm = url.Values{
241-
"bgresponse": []string{"js_disabled"},
241+
"bgresponse": []string{"js_enabled"},
242242
"checkConnection": []string{""},
243243
"checkedDomains": []string{"youtube"},
244244
"continue": []string{authForm.Get("continue")},
@@ -277,7 +277,7 @@ func (kc *Client) loadFirstPage(loginDetails *creds.LoginDetails) (string, url.V
277277
"Email": []string{""},
278278
"Passwd": []string{""},
279279
"TrustDevice": []string{"on"},
280-
"bgresponse": []string{"js_disabled"},
280+
"bgresponse": []string{"js_enabled"},
281281
}
282282
for _, k := range []string{"TL", "gxf"} {
283283
if v, ok := authForm[k]; ok {

pkg/shell/shell.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
package shell

pkg/shell/shell_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
package shell

0 commit comments

Comments
 (0)