Skip to content

Commit

Permalink
Remove ununsed parameter; update deps (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Nov 21, 2023
1 parent ac189b8 commit e12b048
Show file tree
Hide file tree
Showing 9 changed files with 270 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"
go-version: "1.21.4"
id: go

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: v1.21.2
version: v1.22.1
install-only: true

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -56,13 +56,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"
go-version: "1.21.4"
id: go

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: v1.21.2
version: v1.22.1
install-only: true

- name: Install svu
Expand Down
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# UPDATE_HERE
# https://golang.org/dl/
golang 1.21.3
golang 1.21.4
# https://github.com/goreleaser/goreleaser/releases
goreleaser 1.21.2
goreleaser 1.22.1
# https://github.com/vektra/mockery/releases
mockery 2.35.4
mockery 2.38.0
2 changes: 1 addition & 1 deletion cmd/config_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ git-get config-gen -f Gitfile -p "bitbucket" -u "git@bitbucket.com:AcmeOrg" -t A
git-get config-gen -f Gitfile -p "github" -u "git@github.com:johndoe" -t johndoe -l debug
git-get config-gen -f Gitfile -p "github" -u "git@github.com:AcmeOrg" -t AcmeOrg -l debug`,
Run: func(cmd *cobra.Command, args []string) {
initLogging(logLevel)
initLogging()
log.Debug("Generate Gitfile configuration file")
gitget.GenerateGitfileConfig(
cfgFile,
Expand Down
2 changes: 1 addition & 1 deletion cmd/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ git-get mirror -c 2 -f Gitfile -l debug -u "git@bitbucket.com:acmeorg" -p "bitbu
os.Exit(1)
}
}
initLogging(logLevel)
initLogging()
log.Debugf("%t - push to mirror", pushMirror)
pushMirror = !dryRun
gitget.MirrorRepositories(
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ git get -c 8 -f Gitfile --status -i Gitfile.ignore -l panic \
os.Exit(1)
}
}
initLogging(logLevel)
initLogging()
gitget.GetRepositories(
cfgFiles,
ignoreFiles,
Expand All @@ -104,7 +104,7 @@ git get -c 8 -f Gitfile --status -i Gitfile.ignore -l panic \
},
}

func initLogging(level string) {
func initLogging() {
log.SetLevel(levels[logLevel])
}

Expand Down
6 changes: 5 additions & 1 deletion exec/mocks/ShellRunnerI.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

226 changes: 226 additions & 0 deletions gitlab/mocks/GitGetGitlabI.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ module github.com/isindir/git-get
go 1.21

require (
github.com/fatih/color v1.15.0
github.com/fatih/color v1.16.0
// https://github.com/google/go-github/releases
github.com/google/go-github/v56 v56.0.0
github.com/ktrysmt/go-bitbucket v0.9.70
github.com/ktrysmt/go-bitbucket v0.9.72
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.7.0
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.8.4
github.com/xanzy/go-gitlab v0.93.1
golang.org/x/net v0.17.0
golang.org/x/oauth2 v0.13.0
github.com/xanzy/go-gitlab v0.94.0
golang.org/x/net v0.18.0
golang.org/x/oauth2 v0.14.0
gopkg.in/yaml.v3 v3.0.1
)

Expand All @@ -26,12 +26,12 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.31.0 // indirect
Expand Down
Loading

0 comments on commit e12b048

Please sign in to comment.