Skip to content

Commit

Permalink
Merge branch 'master' into use_idp_name_as_credentials_key
Browse files Browse the repository at this point in the history
  • Loading branch information
sledigabel committed Apr 29, 2022
2 parents c52b819 + df3f6cf commit 15fcd0c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.0
version: v1.45.2

release-build:
name: release-build
Expand Down
22 changes: 5 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARCH=$(shell uname -m)
VERSION=2.28.0
ITERATION := 1

GOLANGCI_VERSION = 1.32.0
GOLANGCI_VERSION = 1.45.2
GORELEASER_VERSION = 0.157.0

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

ci: prepare test

$(BIN_DIR)/golangci-lint: $(BIN_DIR)/golangci-lint-${GOLANGCI_VERSION}
@ln -sf golangci-lint-${GOLANGCI_VERSION} $(BIN_DIR)/golangci-lint
$(BIN_DIR)/golangci-lint-${GOLANGCI_VERSION}:
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint bash -s -- v${GOLANGCI_VERSION}
@mv $(BIN_DIR)/golangci-lint $@

$(BIN_DIR)/goreleaser: $(BIN_DIR)/goreleaser-${GORELEASER_VERSION}
@ln -sf goreleaser-${GORELEASER_VERSION} $(BIN_DIR)/goreleaser
$(BIN_DIR)/goreleaser-${GORELEASER_VERSION}:
@curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | BINARY=goreleaser bash -s -- v${GORELEASER_VERSION}
@mv $(BIN_DIR)/goreleaser $@

mod:
@go mod download
@go mod tidy
.PHONY: mod

lint: $(BIN_DIR)/golangci-lint
lint:
@echo "--- lint all the things"
@$(BIN_DIR)/golangci-lint run ./...
@docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v$(GOLANGCI_VERSION) golangci-lint run -v
.PHONY: lint

lint-fix: $(BIN_DIR)/golangci-lint
lint-fix:
@echo "--- lint all the things"
@$(BIN_DIR)/golangci-lint run --fix ./...
@docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v$(GOLANGCI_VERSION) golangci-lint run -v --fix
.PHONY: lint-fix

fmt: lint-fix
Expand Down
4 changes: 2 additions & 2 deletions pkg/provider/googleapps/googleapps.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (kc *Client) loadFirstPage(loginDetails *creds.LoginDetails) (string, url.V
if loginPageV1 {
// Login page v1
postForm = url.Values{
"bgresponse": []string{"js_disabled"},
"bgresponse": []string{"js_enabled"},
"checkConnection": []string{""},
"checkedDomains": []string{"youtube"},
"continue": []string{authForm.Get("continue")},
Expand Down Expand Up @@ -277,7 +277,7 @@ func (kc *Client) loadFirstPage(loginDetails *creds.LoginDetails) (string, url.V
"Email": []string{""},
"Passwd": []string{""},
"TrustDevice": []string{"on"},
"bgresponse": []string{"js_disabled"},
"bgresponse": []string{"js_enabled"},
}
for _, k := range []string{"TL", "gxf"} {
if v, ok := authForm[k]; ok {
Expand Down
1 change: 1 addition & 0 deletions pkg/shell/shell.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package shell
Expand Down
1 change: 1 addition & 0 deletions pkg/shell/shell_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package shell
Expand Down

0 comments on commit 15fcd0c

Please sign in to comment.