Repository: mbrt/gmailctl
Pull request #161 (2020-12-30 22:22:06)

fix: update go.sum
relates to https://github.com/Homebrew/homebrew-core/pull/68047


Patch:
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 10b8612..25fe9f9 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -2,33 +2,29 @@ name: Go
 
 on:
   push:
-    branches: [ master ]
+    branches: master
   pull_request:
-    branches: [ master ]
+    branches: master
 
 jobs:
-
   build:
-    name: Build
     runs-on: ubuntu-latest
     steps:
 
-    - name: Set up Go 1.14
+    - uses: actions/checkout@v2
+
+    - name: Set up Go 1.15
       uses: actions/setup-go@v1
       with:
-        go-version: 1.14
-      id: go
-
-    - name: Check out code into the Go module directory
-      uses: actions/checkout@v2
+        go-version: 1.15
 
-    - name: Get dependencies
-      run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.24.0
+    - name: golangci-lint
+      uses: golangci/golangci-lint-action@v2
+      with:
+        # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
+        version: v1.34
 
     - name: Test
       run: |
         go test -v ./...
         hack/check-codegen.sh
-
-    - name: Lint
-      run: ./bin/golangci-lint run
diff --git a/README.md b/README.md
index 5bcf54a..005650d 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ This project then exists to provide to your Gmail filters:
 
 ## Install
 
-gmailctl is written in Go and requires at least Go version 1.12. Make sure to
+gmailctl is written in Go and requires at least Go version 1.15. Make sure to
 setup your [$GOPATH](https://golang.org/doc/code.html#GOPATH) correctly,
 including the `bin` subdirectory in your `$PATH`.
 
diff --git a/go.mod b/go.mod
index 037dd0f..b39b9dd 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/mbrt/gmailctl
 
-go 1.13
+go 1.15
 
 require (
 	github.com/google/go-jsonnet v0.17.0
diff --git a/go.sum b/go.sum
index 55e62cb..5848805 100644
--- a/go.sum
+++ b/go.sum
@@ -256,6 +256,7 @@ github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJ
 github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
 github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
 github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
+github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
 github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
 github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=


Test patch:
diff --git a/pkg/apply/apply_test.go b/pkg/apply/apply_test.go
index 6ff18f5..6001c92 100644
--- a/pkg/apply/apply_test.go
+++ b/pkg/apply/apply_test.go
@@ -181,7 +181,7 @@ func TestDiff(t *testing.T) {
 
 			if *update {
 				// Update the golden files
-				err = ioutil.WriteFile(diffFile, []byte(diff.String()), 0644)
+				err = ioutil.WriteFile(diffFile, []byte(diff.String()), 0600)
 				assert.Nil(t, err)
 			} else {
 				// Test them
diff --git a/pkg/config/lib_test.go b/pkg/config/lib_test.go
index 4d515eb..ad1c5d2 100644
--- a/pkg/config/lib_test.go
+++ b/pkg/config/lib_test.go
@@ -65,7 +65,7 @@ func TestJsonnetLib(t *testing.T) {
 				// Update the golden files
 				buf, err := json.MarshalIndent(jnparsed, "", "  ")
 				assert.Nil(t, err)
-				err = ioutil.WriteFile(jsfile, buf, 0644)
+				err = ioutil.WriteFile(jsfile, buf, 0600)
 				assert.Nil(t, err)
 			} else {
 				// Test them
diff --git a/pkg/label/diff_test.go b/pkg/label/diff_test.go
index f022f6a..3374d90 100644
--- a/pkg/label/diff_test.go
+++ b/pkg/label/diff_test.go
@@ -86,7 +86,7 @@ func TestDiff(t *testing.T) {
 
 			if *update {
 				// Update the golden files
-				err = ioutil.WriteFile(diffPath, []byte(diff.String()), 0644)
+				err = ioutil.WriteFile(diffPath, []byte(diff.String()), 0600)
 				assert.Nil(t, err)
 			} else {
 				// Test them
diff --git a/pkg/rimport/rimport_test.go b/pkg/rimport/rimport_test.go
index ce11ff6..bb94ff8 100644
--- a/pkg/rimport/rimport_test.go
+++ b/pkg/rimport/rimport_test.go
@@ -46,7 +46,7 @@ func TestImport(t *testing.T) {
 
 	if *update {
 		// Update the golden files
-		err = ioutil.WriteFile("testdata/config.json", b, 0644)
+		err = ioutil.WriteFile("testdata/config.json", b, 0600)
 		assert.Nil(t, err)
 	} else {
 		// Test them