diff --git a/Makefile b/Makefile index bb17a0a..6c67a3c 100644 --- a/Makefile +++ b/Makefile @@ -120,9 +120,9 @@ all: test build; ## Test and Build the application gendoc: __gendoc_init__ $(BIN_DIR)/$(PROJECT).pdf; @ ## Generate the PDF documentation -publish: __publish_init__ __publish_binaries__; @ ## Publish the binaries to the Repository +publish: __publish_init__ __publish_binaries__ __publish_snap__; @ ## Publish the binaries to the Repository -archive: __archive_init__ __archive_all__ __archive_chocolatey__ __archive_debian__ __archive_rpm__ ; @ ## Archive the binaries +archive: __archive_init__ __archive_all__ __archive_chocolatey__ __archive_debian__ __archive_rpm__ __archive_snap__ ; @ ## Archive the binaries build: __build_init__ __build_all__; @ ## Build the application for all platforms @@ -211,7 +211,7 @@ __start__: stop $(BIN_DIR)/$(GOOS)/$(PROJECT) | $(TMP_DIR) $(LOG_DIR); $(info $( $Q DEBUG=1 LOG_DESTINATION="$(LOG_DIR)/$(PROJECT).log" $(BIN_DIR)/$(GOOS)/$(PROJECT) & echo $$! > $(TMP_DIR)/$(PROJECT).pid # publish recipes -.PHONY: __publish_init__ __publish_binaries__ +.PHONY: __publish_init__ __publish_binaries__ __publish_snap__ __publish_init__:; __publish_binaries__: archive $(info $(M) Uploading the binary packages...) @@ -223,6 +223,14 @@ __publish_binaries__: archive $(info $(M) Uploading the RPM packages...) $Q $(foreach archive, $(wildcard $(BIN_DIR)/*.rpm), go run . artifact upload --progress $(archive) ;) +__publish_snap__: \ + $(TMP_DIR)/__publish_snap__ \ + ; + +$(TMP_DIR)/__publish_snap__: $(TMP_DIR) __archive_snap__ + $Q snapcraft upload --release=latest/edge $(BIN_DIR)/$(PACKAGE)_$(VERSION)_amd64.snap + $Q $(TOUCH) + # archive recipes .PHONY: __archive_init__ __archive_all__ __archive_chocolatey__ __archive_debian__ __archive_rpm__ __archive_snap__ __archive_init__:; $(info $(M) Archiving binaries for application $(PROJECT)) diff --git a/cmd/artifact/delete.go b/cmd/artifact/delete.go index ae52d84..6d3db9a 100644 --- a/cmd/artifact/delete.go +++ b/cmd/artifact/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -56,7 +57,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, artifactName := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting artifact %s", artifactName) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting artifact %s", artifactName) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/artifact/download.go b/cmd/artifact/download.go index ae4ee0f..9c3bcfb 100644 --- a/cmd/artifact/download.go +++ b/cmd/artifact/download.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -61,7 +62,7 @@ func getProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, artifactName := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Downloading artifact %s to %s", artifactName, downloadOptions.Destination) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Downloading artifact %s to %s", artifactName, downloadOptions.Destination) { err := profile.Current.Download( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/artifact/upload.go b/cmd/artifact/upload.go index 9d2725d..c0de416 100644 --- a/cmd/artifact/upload.go +++ b/cmd/artifact/upload.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -46,7 +47,7 @@ func uploadProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, artifactName := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Uploading artifact %s to %s", artifactName, downloadOptions.Destination) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Uploading artifact %s to %s", artifactName, downloadOptions.Destination) { err := profile.Current.Upload( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/common/whatif.go b/cmd/common/whatif.go new file mode 100644 index 0000000..b341dd9 --- /dev/null +++ b/cmd/common/whatif.go @@ -0,0 +1,24 @@ +package common + +import ( + "context" + "fmt" + "os" + + "github.com/gildas/go-logger" + "github.com/spf13/cobra" +) + +// WhatIf prints what would be done by the command +// +// # If the DryRun flag is set, it prints what would be done by the command and tells the caller to not proceed +// +// otherwise it does nothing +func WhatIf(context context.Context, cmd *cobra.Command, format string, args ...any) (proceed bool) { + if cmd.Flag("dry-run").Changed { + logger.Must(logger.FromContext(context)).Infof("Dry run: "+format, args...) + fmt.Fprintf(os.Stderr, "Dry run: "+format+"\n", args...) + return false + } + return true +} diff --git a/cmd/issue/attachment/delete.go b/cmd/issue/attachment/delete.go index 4063a67..a7d977a 100644 --- a/cmd/issue/attachment/delete.go +++ b/cmd/issue/attachment/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -62,7 +63,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, attachmentID := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting attachment %s from issue %s", attachmentID, deleteOptions.IssueID) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting attachment %s from issue %s", attachmentID, deleteOptions.IssueID) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/attachment/download.go b/cmd/issue/attachment/download.go index c79f31f..0d8dc06 100644 --- a/cmd/issue/attachment/download.go +++ b/cmd/issue/attachment/download.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -58,7 +59,7 @@ func downloadProcess(cmd *cobra.Command, args []string) error { return errors.ArgumentMissing.With("profile") } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Downloading attachment %s from issue %s to %s", args[0], downloadOptions.IssueID, downloadOptions.Destination) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Downloading attachment %s from issue %s to %s", args[0], downloadOptions.IssueID, downloadOptions.Destination) { err := profile.Current.Download( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/attachment/upload.go b/cmd/issue/attachment/upload.go index e2fb917..beab573 100644 --- a/cmd/issue/attachment/upload.go +++ b/cmd/issue/attachment/upload.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -43,7 +44,7 @@ func uploadProcess(cmd *cobra.Command, args []string) error { return errors.ArgumentMissing.With("profile") } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Uploading attachment %s to issue %s", args[0], uploadOptions.IssueID) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Uploading attachment %s to issue %s", args[0], uploadOptions.IssueID) { err := profile.Current.Upload( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/comment/create.go b/cmd/issue/comment/create.go index 3d4f80e..103b08e 100644 --- a/cmd/issue/comment/create.go +++ b/cmd/issue/comment/create.go @@ -57,7 +57,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating issue comment") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating comment for issue %s", createOptions.IssueID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating comment for issue %s", createOptions.IssueID) { return nil } var comment Comment diff --git a/cmd/issue/comment/delete.go b/cmd/issue/comment/delete.go index 469f857..be9fbee 100644 --- a/cmd/issue/comment/delete.go +++ b/cmd/issue/comment/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -61,7 +62,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, commentID := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting comment %s from issue %s", commentID, deleteOptions.IssueID) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting comment %s from issue %s", commentID, deleteOptions.IssueID) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/comment/update.go b/cmd/issue/comment/update.go index 8a1df8a..3426f07 100644 --- a/cmd/issue/comment/update.go +++ b/cmd/issue/comment/update.go @@ -69,7 +69,7 @@ func updateProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Updating issue comment") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating comment %s for issue %s", updateOptions.Comment, updateOptions.IssueID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating comment %s for issue %s", updateOptions.Comment, updateOptions.IssueID) { return nil } var comment Comment diff --git a/cmd/issue/create.go b/cmd/issue/create.go index 13e7159..3b2ba63 100644 --- a/cmd/issue/create.go +++ b/cmd/issue/create.go @@ -90,7 +90,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating issue") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating issue") { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating issue") { return nil } var issue Issue diff --git a/cmd/issue/delete.go b/cmd/issue/delete.go index a725e53..03e9335 100644 --- a/cmd/issue/delete.go +++ b/cmd/issue/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -56,7 +57,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, issueID := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting issue %s", issueID) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting issue %s", issueID) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/unvote.go b/cmd/issue/unvote.go index 71bb033..18988ac 100644 --- a/cmd/issue/unvote.go +++ b/cmd/issue/unvote.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -46,7 +47,7 @@ func unvoteProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Unvoting from issue %s", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Unvoting from issue %s", args[0]) { err = profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/unwatch.go b/cmd/issue/unwatch.go index 6da8ae2..5d50843 100644 --- a/cmd/issue/unwatch.go +++ b/cmd/issue/unwatch.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -46,7 +47,7 @@ func unwatchProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Unwatching issue %s", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Unwatching issue %s", args[0]) { err = profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/update.go b/cmd/issue/update.go index 62a5094..20d2e21 100644 --- a/cmd/issue/update.go +++ b/cmd/issue/update.go @@ -108,7 +108,7 @@ func updateProcess(cmd *cobra.Command, args []string) (err error) { log.Record("payload", payload).Infof("Updating issue %s", args[0]) var issue Issue - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating issue %s", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating issue %s", args[0]) { err = profile.Current.Put( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/vote.go b/cmd/issue/vote.go index 1193b2a..d13a3e3 100644 --- a/cmd/issue/vote.go +++ b/cmd/issue/vote.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -46,7 +47,7 @@ func voteProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Voting for issue %s", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Voting for issue %s", args[0]) { err = profile.Current.Put( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/issue/watch.go b/cmd/issue/watch.go index ce5801c..a72e600 100644 --- a/cmd/issue/watch.go +++ b/cmd/issue/watch.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -58,7 +59,7 @@ func watchProcess(cmd *cobra.Command, args []string) (err error) { return } - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Watching issue %s", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Watching issue %s", args[0]) { err = profile.Current.Put( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/profile/create.go b/cmd/profile/create.go index e08f91f..60694e9 100644 --- a/cmd/profile/create.go +++ b/cmd/profile/create.go @@ -4,6 +4,7 @@ import ( "os" "path/filepath" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "github.com/gildas/go-errors" "github.com/gildas/go-flags" "github.com/gildas/go-logger" @@ -73,7 +74,7 @@ func createProcess(cmd *cobra.Command, args []string) error { return errors.DuplicateFound.With("name", createOptions.Name) } - if !Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating profile %s", createOptions.Name) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating profile %s", createOptions.Name) { return nil } Profiles.Add(&createOptions.Profile) diff --git a/cmd/profile/delete.go b/cmd/profile/delete.go index 3579ad6..5c79527 100644 --- a/cmd/profile/delete.go +++ b/cmd/profile/delete.go @@ -3,6 +3,7 @@ package profile import ( "strings" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "github.com/gildas/go-logger" "github.com/spf13/cobra" "github.com/spf13/viper" @@ -40,11 +41,11 @@ func deleteProcess(cmd *cobra.Command, args []string) (err error) { if deleteOptions.All { log.Infof("Deleting all profiles") - if Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting all profiles") { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting all profiles") { deleted = Profiles.Delete(Profiles.Names()...) } } else { - if Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting profiles %s", strings.Join(args, ", ")) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting profiles %s", strings.Join(args, ", ")) { deleted = Profiles.Delete(args...) } } diff --git a/cmd/profile/profile.go b/cmd/profile/profile.go index b1ad1f9..bba3a74 100644 --- a/cmd/profile/profile.go +++ b/cmd/profile/profile.go @@ -287,19 +287,6 @@ func (profile Profile) Print(context context.Context, cmd *cobra.Command, payloa return nil } -// WhatIf prints what would be done by the command -// -// If the DryRun flag is set, it prints what would be done by the command -// otherwise it does nothing -func (profile Profile) WhatIf(context context.Context, cmd *cobra.Command, format string, args ...any) (proceed bool) { - if cmd.Flag("dry-run").Changed { - logger.Must(logger.FromContext(context)).Infof("Dry run: "+format, args...) - fmt.Fprintf(os.Stderr, "Dry run: "+format+"\n", args...) - return false - } - return true -} - // MarshalJSON marshals this profile to JSON // // implements json.Marshaler diff --git a/cmd/profile/update.go b/cmd/profile/update.go index 7a54dff..a2648a4 100644 --- a/cmd/profile/update.go +++ b/cmd/profile/update.go @@ -4,6 +4,7 @@ import ( "os" "path/filepath" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "github.com/gildas/go-errors" "github.com/gildas/go-flags" "github.com/gildas/go-logger" @@ -74,7 +75,7 @@ func updateProcess(cmd *cobra.Command, args []string) error { } log.Record("profile", profile).Debugf("Updating profile %s", profile.Name) - if !Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating profile %s", profile.Name) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating profile %s", profile.Name) { return nil } err := profile.Update(updateOptions.Profile) diff --git a/cmd/profile/use.go b/cmd/profile/use.go index acbfaa3..87f9b44 100644 --- a/cmd/profile/use.go +++ b/cmd/profile/use.go @@ -1,6 +1,7 @@ package profile import ( + "bitbucket.org/gildas_cherruel/bb/cmd/common" "github.com/gildas/go-errors" "github.com/gildas/go-logger" "github.com/spf13/cobra" @@ -28,7 +29,7 @@ func useProcess(cmd *cobra.Command, args []string) error { if !found { return errors.NotFound.With("profile", args[0]) } - if Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Using profile %s as default", args[0]) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Using profile %s as default", args[0]) { Profiles.SetCurrent(profile.Name) viper.Set("profiles", Profiles) return viper.WriteConfig() diff --git a/cmd/project/create.go b/cmd/project/create.go index da3930c..d288184 100644 --- a/cmd/project/create.go +++ b/cmd/project/create.go @@ -106,7 +106,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating project") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating project") { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating project") { return nil } var project Project diff --git a/cmd/project/delete.go b/cmd/project/delete.go index b351aa1..958354f 100644 --- a/cmd/project/delete.go +++ b/cmd/project/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" "github.com/gildas/go-errors" @@ -65,7 +66,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, projectKey := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting project %s", projectKey) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting project %s", projectKey) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/project/reviewer/add.go b/cmd/project/reviewer/add.go index 72e19f5..a49bccc 100644 --- a/cmd/project/reviewer/add.go +++ b/cmd/project/reviewer/add.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/user" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" @@ -56,7 +57,7 @@ func addProcess(cmd *cobra.Command, args []string) error { } } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Adding default reviewer %s to project %s", args[0], addOptions.Project) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Adding default reviewer %s to project %s", args[0], addOptions.Project) { return nil } var user user.User diff --git a/cmd/project/reviewer/delete.go b/cmd/project/reviewer/delete.go index 5ee3a81..0c9c306 100644 --- a/cmd/project/reviewer/delete.go +++ b/cmd/project/reviewer/delete.go @@ -4,11 +4,12 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" - "github.com/gildas/go-errors" - "github.com/gildas/go-flags" - "github.com/gildas/go-logger" + errors "github.com/gildas/go-errors" + flags "github.com/gildas/go-flags" + logger "github.com/gildas/go-logger" "github.com/spf13/cobra" ) @@ -41,7 +42,7 @@ func init() { deleteCmd.Flags().BoolVar(&deleteOptions.IgnoreErrors, "ignore-errors", false, "Ignore errors") deleteCmd.MarkFlagsMutuallyExclusive("stop-on-error", "warn-on-error", "ignore-errors") _ = deleteCmd.RegisterFlagCompletionFunc("workspace", deleteOptions.Workspace.CompletionFunc("workspace")) - _ = getCmd.RegisterFlagCompletionFunc("project", deleteOptions.Project.CompletionFunc("project")) + _ = deleteCmd.RegisterFlagCompletionFunc("project", deleteOptions.Project.CompletionFunc("project")) } func deleteValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { @@ -83,7 +84,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, userID := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting default reviewer %s from project %s", userID, deleteOptions.Project) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting default reviewer %s from project %s", userID, deleteOptions.Project) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/project/update.go b/cmd/project/update.go index dc57ec4..2b39389 100644 --- a/cmd/project/update.go +++ b/cmd/project/update.go @@ -115,7 +115,7 @@ func updateProcess(cmd *cobra.Command, args []string) error { } log.Record("payload", payload).Infof("Updating project %s", args[0]) - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating project %s", args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating project %s", args[0]) { return nil } var project Project diff --git a/cmd/pullrequest/approve.go b/cmd/pullrequest/approve.go index dc592e0..1a7ffae 100644 --- a/cmd/pullrequest/approve.go +++ b/cmd/pullrequest/approve.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/user" "github.com/gildas/go-errors" @@ -48,7 +49,7 @@ func approveProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Approving pullrequest %s", args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Approving pullrequest %s", args[0]) { return nil } var participant user.Participant diff --git a/cmd/pullrequest/comment/create.go b/cmd/pullrequest/comment/create.go index fb3323e..c5f392f 100644 --- a/cmd/pullrequest/comment/create.go +++ b/cmd/pullrequest/comment/create.go @@ -82,7 +82,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating pullrequest comment") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating comment for pullrequest %s", createOptions.PullRequestID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating comment for pullrequest %s", createOptions.PullRequestID) { return nil } var comment Comment diff --git a/cmd/pullrequest/comment/delete.go b/cmd/pullrequest/comment/delete.go index 1261cf0..4dcbb12 100644 --- a/cmd/pullrequest/comment/delete.go +++ b/cmd/pullrequest/comment/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -61,7 +62,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, commentID := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting comment %s from pullrequest %s", commentID, deleteOptions.PullRequestID) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting comment %s from pullrequest %s", commentID, deleteOptions.PullRequestID) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/pullrequest/comment/reopen.go b/cmd/pullrequest/comment/reopen.go index f197af4..5b39c0e 100644 --- a/cmd/pullrequest/comment/reopen.go +++ b/cmd/pullrequest/comment/reopen.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -53,7 +54,7 @@ func reopenProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Resolving comment %s from pullrequest %s", args[0], reopenOptions.PullRequestID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Resolving comment %s from pullrequest %s", args[0], reopenOptions.PullRequestID) { return nil } diff --git a/cmd/pullrequest/comment/resolve.go b/cmd/pullrequest/comment/resolve.go index 093cc3d..818c280 100644 --- a/cmd/pullrequest/comment/resolve.go +++ b/cmd/pullrequest/comment/resolve.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -53,7 +54,7 @@ func resolveProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Resolving comment %s from pullrequest %s", args[0], reopenOptions.PullRequestID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Resolving comment %s from pullrequest %s", args[0], reopenOptions.PullRequestID) { return nil } diff --git a/cmd/pullrequest/comment/update.go b/cmd/pullrequest/comment/update.go index 3a793e7..c232102 100644 --- a/cmd/pullrequest/comment/update.go +++ b/cmd/pullrequest/comment/update.go @@ -94,7 +94,7 @@ func updateProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Updating pullrequest comment") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating comment %s for pullrequest %s", updateOptions.Comment, updateOptions.PullRequestID) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating comment %s for pullrequest %s", updateOptions.Comment, updateOptions.PullRequestID) { return nil } var comment Comment diff --git a/cmd/pullrequest/create.go b/cmd/pullrequest/create.go index 37bc432..e2ae640 100644 --- a/cmd/pullrequest/create.go +++ b/cmd/pullrequest/create.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -74,7 +75,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating pullrequest") - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating pullrequest") { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating pullrequest") { return nil } var pullrequest PullRequest diff --git a/cmd/pullrequest/decline.go b/cmd/pullrequest/decline.go index fecac84..34e8fdb 100644 --- a/cmd/pullrequest/decline.go +++ b/cmd/pullrequest/decline.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/user" "github.com/gildas/go-errors" @@ -48,7 +49,7 @@ func declineProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Declining pullrequest %s", args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Declining pullrequest %s", args[0]) { return nil } var participant user.Participant diff --git a/cmd/pullrequest/merge.go b/cmd/pullrequest/merge.go index d6e5226..052f3a1 100644 --- a/cmd/pullrequest/merge.go +++ b/cmd/pullrequest/merge.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-flags" @@ -69,7 +70,7 @@ func mergeProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Merging pullrequest %s", args[0]) - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Merging pullrequest %s", args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Merging pullrequest %s", args[0]) { return nil } err = profile.Current.Post( diff --git a/cmd/pullrequest/unapprove.go b/cmd/pullrequest/unapprove.go index fbbb8b9..e890495 100644 --- a/cmd/pullrequest/unapprove.go +++ b/cmd/pullrequest/unapprove.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "github.com/gildas/go-errors" "github.com/gildas/go-logger" @@ -47,7 +48,7 @@ func unapproveProcess(cmd *cobra.Command, args []string) (err error) { return errors.ArgumentMissing.With("profile") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Unapproving pullrequest %s", args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Unapproving pullrequest %s", args[0]) { return nil } err = profile.Current.Delete( diff --git a/cmd/repository/clone.go b/cmd/repository/clone.go index 6976584..a0524bb 100644 --- a/cmd/repository/clone.go +++ b/cmd/repository/clone.go @@ -5,6 +5,7 @@ import ( "os" "strings" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" "github.com/gildas/go-errors" @@ -76,7 +77,7 @@ func cloneProcess(cmd *cobra.Command, args []string) error { cloneOptions.Destination = strings.TrimSuffix(args[0], ".git") } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Cloning repository %s/%s", cloneOptions.Workspace, args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Cloning repository %s/%s", cloneOptions.Workspace, args[0]) { return nil } _, err := git.PlainCloneContext(log.ToContext(cmd.Context()), cloneOptions.Destination, cloneOptions.Bare, &git.CloneOptions{ diff --git a/cmd/repository/create.go b/cmd/repository/create.go index e61a17c..f2892cd 100644 --- a/cmd/repository/create.go +++ b/cmd/repository/create.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/project" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" @@ -90,7 +91,7 @@ func createProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Creating repository %s/%s in project %s", createOptions.Workspace, createOptions.Name, createOptions.Project) - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating repository %s/%s in project %s", createOptions.Workspace, createOptions.Name, createOptions.Project) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Creating repository %s/%s in project %s", createOptions.Workspace, createOptions.Name, createOptions.Project) { return nil } var repository Repository diff --git a/cmd/repository/delete.go b/cmd/repository/delete.go index ccce06f..cbedb75 100644 --- a/cmd/repository/delete.go +++ b/cmd/repository/delete.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" "github.com/gildas/go-errors" @@ -66,7 +67,7 @@ func deleteProcess(cmd *cobra.Command, args []string) error { var merr errors.MultiError for _, repositorySlug := range args { - if profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting repository %s", repositorySlug) { + if common.WhatIf(log.ToContext(cmd.Context()), cmd, "Deleting repository %s", repositorySlug) { err := profile.Current.Delete( log.ToContext(cmd.Context()), cmd, diff --git a/cmd/repository/fork.go b/cmd/repository/fork.go index b432875..f9f7f46 100644 --- a/cmd/repository/fork.go +++ b/cmd/repository/fork.go @@ -3,6 +3,7 @@ package repository import ( "fmt" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/project" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" @@ -97,7 +98,7 @@ func forkProcess(cmd *cobra.Command, args []string) error { payload.Project = project.NewReference(forkOptions.Project.Value) } - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Forking repository %s/%s", forkOptions.Workspace, args[0]) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Forking repository %s/%s", forkOptions.Workspace, args[0]) { return nil } var forked Repository diff --git a/cmd/repository/update.go b/cmd/repository/update.go index 766bd00..4286e06 100644 --- a/cmd/repository/update.go +++ b/cmd/repository/update.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "bitbucket.org/gildas_cherruel/bb/cmd/common" "bitbucket.org/gildas_cherruel/bb/cmd/profile" "bitbucket.org/gildas_cherruel/bb/cmd/project" "bitbucket.org/gildas_cherruel/bb/cmd/workspace" @@ -98,7 +99,7 @@ func updateProcess(cmd *cobra.Command, args []string) (err error) { } log.Record("payload", payload).Infof("Updating repository %s/%s in project %s", updateOptions.Workspace, updateOptions.Name, updateOptions.Project) - if !profile.Current.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating repository %s/%s in projecct %s", updateOptions.Workspace, updateOptions.Name, updateOptions.Project) { + if !common.WhatIf(log.ToContext(cmd.Context()), cmd, "Updating repository %s/%s in projecct %s", updateOptions.Workspace, updateOptions.Name, updateOptions.Project) { return nil } var repository Repository diff --git a/go.mod b/go.mod index 3f6d817..9f55d86 100644 --- a/go.mod +++ b/go.mod @@ -1,50 +1,53 @@ module bitbucket.org/gildas_cherruel/bb -go 1.21.6 +go 1.22 + +toolchain go1.22.2 require ( - github.com/gildas/go-core v0.5.7 + github.com/gildas/go-core v0.5.8 github.com/gildas/go-errors v0.3.6 - github.com/gildas/go-flags v0.1.0 - github.com/gildas/go-logger v1.6.11 - github.com/gildas/go-request v0.9.0 - github.com/go-git/go-git/v5 v5.11.0 + github.com/gildas/go-flags v0.1.4 + github.com/gildas/go-logger v1.7.1 + github.com/gildas/go-request v0.9.5 + github.com/go-git/go-git/v5 v5.12.0 github.com/google/uuid v1.6.0 github.com/joho/godotenv v1.5.1 github.com/kataras/tablewriter v0.0.0-20180708051242-e063d29b7c23 - github.com/schollz/progressbar/v3 v3.14.1 + github.com/schollz/progressbar/v3 v3.14.4 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 - github.com/spf13/viper v1.18.2 - github.com/stretchr/testify v1.8.4 + github.com/spf13/viper v1.19.0 + github.com/stretchr/testify v1.9.0 gopkg.in/ini.v1 v1.67.0 gopkg.in/yaml.v3 v3.0.1 ) require ( - cloud.google.com/go v0.112.0 // indirect - cloud.google.com/go/compute v1.23.4 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/logging v1.9.0 // indirect - cloud.google.com/go/longrunning v0.5.5 // indirect + cloud.google.com/go v0.115.0 // indirect + cloud.google.com/go/auth v0.5.1 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect + cloud.google.com/go/compute/metadata v0.3.0 // indirect + cloud.google.com/go/logging v1.10.0 // indirect + cloud.google.com/go/longrunning v0.5.7 // indirect dario.cat/mergo v1.0.0 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/ProtonMail/go-crypto v1.0.0 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect + github.com/cloudflare/circl v1.3.9 // indirect + github.com/cyphar/filepath-securejoin v0.2.5 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/googleapis/gax-go/v2 v2.12.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect @@ -53,43 +56,40 @@ require ( github.com/mattn/go-runewidth v0.0.15 // indirect github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/pelletier/go-toml/v2 v2.1.1 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rivo/uniseg v0.4.7 // indirect - github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/locafero v0.6.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect - github.com/sergi/go-diff v1.3.1 // indirect - github.com/skeema/knownhosts v1.2.1 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect + github.com/skeema/knownhosts v1.2.2 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 // indirect - go.opentelemetry.io/otel v1.23.1 // indirect - go.opentelemetry.io/otel/metric v1.23.1 // indirect - go.opentelemetry.io/otel/trace v1.23.1 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect + go.opentelemetry.io/otel v1.27.0 // indirect + go.opentelemetry.io/otel/metric v1.27.0 // indirect + go.opentelemetry.io/otel/trace v1.27.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.19.0 // indirect - golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 // indirect - golang.org/x/mod v0.15.0 // indirect - golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.17.0 // indirect - golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.17.0 // indirect - golang.org/x/term v0.17.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/oauth2 v0.21.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/term v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.17.0 // indirect - google.golang.org/api v0.163.0 // indirect - google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect - google.golang.org/grpc v1.61.0 // indirect - google.golang.org/protobuf v1.32.0 // indirect + google.golang.org/api v0.184.0 // indirect + google.golang.org/genproto v0.0.0-20240610135401-a8a62080eff3 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240610135401-a8a62080eff3 // indirect + google.golang.org/grpc v1.64.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect ) diff --git a/go.sum b/go.sum index db11664..d2e7487 100644 --- a/go.sum +++ b/go.sum @@ -1,22 +1,24 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= -cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= -cloud.google.com/go/compute v1.23.4 h1:EBT9Nw4q3zyE7G45Wvv3MzolIrCJEuHys5muLY0wvAw= -cloud.google.com/go/compute v1.23.4/go.mod h1:/EJMj55asU6kAFnuZET8zqgwgJ9FvXWXOkkfQZa4ioI= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= -cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= -cloud.google.com/go/logging v1.9.0 h1:iEIOXFO9EmSiTjDmfpbRjOxECO7R8C7b8IXUGOj7xZw= -cloud.google.com/go/logging v1.9.0/go.mod h1:1Io0vnZv4onoUnsVUQY3HZ3Igb1nBchky0A0y7BBBhE= -cloud.google.com/go/longrunning v0.5.5 h1:GOE6pZFdSrTb4KAiKnXsJBtlE6mEyaW44oKyMILWnOg= -cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDnoTk0yawPBB7s= +cloud.google.com/go v0.115.0 h1:CnFSK6Xo3lDYRoBKEcAtia6VSC837/ZkJuRduSFnr14= +cloud.google.com/go v0.115.0/go.mod h1:8jIM5vVgoAEoiVxQ/O4BFTfHqulPZgs/ufEzMcFMdWU= +cloud.google.com/go/auth v0.5.1 h1:0QNO7VThG54LUzKiQxv8C6x1YX7lUrzlAa1nVLF8CIw= +cloud.google.com/go/auth v0.5.1/go.mod h1:vbZT8GjzDf3AVqCcQmqeeM32U9HBFc32vVVAbwDsa6s= +cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4= +cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/iam v1.1.8 h1:r7umDwhj+BQyz0ScZMp4QrGXjSTI3ZINnpgU2nlB/K0= +cloud.google.com/go/iam v1.1.8/go.mod h1:GvE6lyMmfxXauzNq8NbgJbeVQNspG+tcdL/W8QO1+zE= +cloud.google.com/go/logging v1.10.0 h1:f+ZXMqyrSJ5vZ5pE/zr0xC8y/M9BLNzQeLBwfeZ+wY4= +cloud.google.com/go/logging v1.10.0/go.mod h1:EHOwcxlltJrYGqMGfghSet736KR3hX1MAj614mrMk9I= +cloud.google.com/go/longrunning v0.5.7 h1:WLbHekDbjK1fVFD3ibpFFVoyizlLRl73I7YKuAKilhU= +cloud.google.com/go/longrunning v0.5.7/go.mod h1:8GClkudohy1Fxm3owmBGid8W0pSgodEMwEAztp38Xng= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= @@ -27,14 +29,12 @@ github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7N github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= -github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/cloudflare/circl v1.3.9 h1:QFrlgFYf2Qpi8bSpVPK1HBvWpx16v/1TZivyo7pGuBE= +github.com/cloudflare/circl v1.3.9/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= -github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/cyphar/filepath-securejoin v0.2.5 h1:6iR5tXJ/e6tJZzzdMc1km3Sa7RRIVBKAK32O2s7AYfo= +github.com/cyphar/filepath-securejoin v0.2.5/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -47,37 +47,35 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= -github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/gildas/go-core v0.5.7 h1:MSB5dfVNF/9Jbrxz+zoUR+xZlR7KVF2wZHOTkdrQFHw= -github.com/gildas/go-core v0.5.7/go.mod h1:086mC22MxbhI8bm3cm+w6DBnNwY7+TYkfMe4lUGj8vc= +github.com/gildas/go-core v0.5.8 h1:4j192jB6BqXlnjjw1/EVvm6qXqV4f9ZuI3E6s68ZNb0= +github.com/gildas/go-core v0.5.8/go.mod h1:086mC22MxbhI8bm3cm+w6DBnNwY7+TYkfMe4lUGj8vc= github.com/gildas/go-errors v0.3.6 h1:/loKTkq/t+eoIcULhKAwd0WBRPHgZxhkd3l+m/uw15c= github.com/gildas/go-errors v0.3.6/go.mod h1:jqH4hy2BzpU3mdjkUYJhkZvEkn56cWRjWVgz/HNqglQ= -github.com/gildas/go-flags v0.1.0 h1:AfF925UCIuuGnRJMo0WxFtOtbCLw2wJ5KK9faeY5ZuE= -github.com/gildas/go-flags v0.1.0/go.mod h1:uZf2R1DLx+kkKD9HMqlYR61B2sPgy/3xGccecXZzR1Q= -github.com/gildas/go-logger v1.6.11 h1:JzeaUdEBSjYmUvAeF2HD8b3nYX5AWEDeUVga6sW2730= -github.com/gildas/go-logger v1.6.11/go.mod h1:+V2TvI0qgG04P5zu21SQPFKqMFT+n2e3Qh+NA1CCfx4= -github.com/gildas/go-request v0.9.0 h1:TU6Ej7Zg+xbt5z7EeG3k0x4KOsvaCF1J7cRGLdU+eR8= -github.com/gildas/go-request v0.9.0/go.mod h1:s77kOBaenjcZN++k+OTeFde6f+RIOkWwMwUOOFMPdcE= -github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/gildas/go-flags v0.1.4 h1:3gNlvOvIwFSeF6sKuU2v0NX3v+nCfP4mrI/jmGFi0sk= +github.com/gildas/go-flags v0.1.4/go.mod h1:ZrDY34Sp62xpLaTmpmnp7CaJ5G/Oppl113xt9CpD5FE= +github.com/gildas/go-logger v1.7.1 h1:6gbN5QPLP1vntpbV6cTSObaNwdrjndl1GfLJcbZ8eYw= +github.com/gildas/go-logger v1.7.1/go.mod h1:N2LqqOvcYJsCoGq5GAygIzWJWTr8sIUq072sdXNnyws= +github.com/gildas/go-request v0.9.5 h1:XAV19mXCdZ84UBx4ZU6fu2vL6ocWDEqDMqENz4nlcEY= +github.com/gildas/go-request v0.9.5/go.mod h1:IayVqAs/QDsvXy2HrCN0aiMSknFQFsAcyViwa2itmDs= +github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= +github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.11.0 h1:XIZc1p+8YzypNr34itUfSvYJcv+eYdTnTvOZ2vD3cA4= -github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= +github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= @@ -94,17 +92,14 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= @@ -114,8 +109,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= -github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= -github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/gax-go/v2 v2.12.4 h1:9gWcmF85Wvq4ryPFvGFaOgPIs1AQX0d0bcbGw4Z96qg= +github.com/googleapis/gax-go/v2 v2.12.4/go.mod h1:KYEYLorsnIGDi/rPC8b5TdlB9kbKoFubselGIoBMCwI= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= @@ -147,8 +142,8 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= -github.com/pelletier/go-toml/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI= -github.com/pelletier/go-toml/v2 v2.1.1/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -158,23 +153,22 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= -github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/locafero v0.6.0 h1:ON7AQg37yzcRPU69mt7gwhFEBwxI6P9T4Qu3N51bwOk= +github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE1GbemJYHqdNjX0= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/schollz/progressbar/v3 v3.14.1 h1:VD+MJPCr4s3wdhTc7OEJ/Z3dAeBzJ7yKH/P4lC5yRTI= -github.com/schollz/progressbar/v3 v3.14.1/go.mod h1:Zc9xXneTzWXF81TGoqL71u0sBPjULtEHYtj/WVgVy8E= -github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= -github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/schollz/progressbar/v3 v3.14.4 h1:W9ZrDSJk7eqmQhd3uxFNNcTr0QL+xuGNI9dEMrw0r74= +github.com/schollz/progressbar/v3 v3.14.4/go.mod h1:aT3UQ7yGm+2ZjeXPqsjTenwL3ddUiuZ0kfQ/2tHlyNI= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= -github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= +github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= @@ -185,19 +179,21 @@ github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= 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.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= -github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= +github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= @@ -205,18 +201,18 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 h1:P+/g8GpuJGYbOp2tAdKrIPUX9JO02q8Q0YNlHolpibA= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0/go.mod h1:tIKj3DbO8N9Y2xo52og3irLsPI4GW02DSMtrVgNMgxg= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 h1:doUP+ExOpH3spVTLS0FcWGLnQrPct/hD/bCPbDRUEAU= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0/go.mod h1:rdENBZMT2OE6Ne/KLwpiXudnAsbdrdBaqBvTN8M8BgA= -go.opentelemetry.io/otel v1.23.1 h1:Za4UzOqJYS+MUczKI320AtqZHZb7EqxO00jAHE0jmQY= -go.opentelemetry.io/otel v1.23.1/go.mod h1:Td0134eafDLcTS4y+zQ26GE8u3dEuRBiBCTUIRHaikA= -go.opentelemetry.io/otel/metric v1.23.1 h1:PQJmqJ9u2QaJLBOELl1cxIdPcpbwzbkjfEyelTl2rlo= -go.opentelemetry.io/otel/metric v1.23.1/go.mod h1:mpG2QPlAfnK8yNhNJAxDZruU9Y1/HubbC+KyH8FaCWI= -go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= -go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.23.1 h1:4LrmmEd8AU2rFvU1zegmvqW7+kWarxtNOPyeL6HmYY8= -go.opentelemetry.io/otel/trace v1.23.1/go.mod h1:4IpnpJFwr1mo/6HL8XIPJaE9y0+u1KcVmuW7dwFSVrI= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0 h1:vS1Ao/R55RNV4O7TA2Qopok8yN+X0LIP6RVWLFkprck= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0/go.mod h1:BMsdeOxN04K0L5FNUBfjFdvwWGNe/rkmSwH4Aelu/X0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0= +go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg= +go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ= +go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik= +go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak= +go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucgoDw= +go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg= +go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw= +go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -225,18 +221,16 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 h1:/RIbNt/Zr7rVhIkQhooTxCxFcdWLGIKnZA4IXNFSrvo= -golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -250,18 +244,18 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ= -golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -278,27 +272,26 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= -golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= +golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= +golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -309,32 +302,28 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.163.0 h1:4BBDpPaSH+H28NhnX+WwjXxbRLQ7TWuEKp4BQyEjxvk= -google.golang.org/api v0.163.0/go.mod h1:6SulDkfoBIg4NFmCuZ39XeeAgSHCPecfSUuDyYlAHs0= +google.golang.org/api v0.184.0 h1:dmEdk6ZkJNXy1JcDhn/ou0ZUq7n9zropG2/tR4z+RDg= +google.golang.org/api v0.184.0/go.mod h1:CeDTtUEiYENAf8PPG5VZW2yNp2VM3VWbCeTioAZBTBA= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= -google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 h1:g/4bk7P6TPMkAUbUhquq98xey1slwvuVJPosdBqYJlU= -google.golang.org/genproto v0.0.0-20240205150955-31a09d347014/go.mod h1:xEgQu1e4stdSSsxPDK8Azkrk/ECl5HvdPf6nbZrTS5M= -google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= -google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 h1:FSL3lRCkhaPFxqi0s9o+V4UI2WTzAVOvkgbd4kVV4Wg= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014/go.mod h1:SaPjaZGWb0lPqs6Ittu0spdfrOArqji4ZdeP5IC/9N4= +google.golang.org/genproto v0.0.0-20240610135401-a8a62080eff3 h1:8RTI1cmuvdY9J7q/jpJWEj5UfgWjhV5MCoXaYmwLBYQ= +google.golang.org/genproto v0.0.0-20240610135401-a8a62080eff3/go.mod h1:qb66gsewNb7Ghv1enkhJiRfYGWUklv3n6G8UvprOhzA= +google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 h1:QW9+G6Fir4VcRXVH8x3LilNAb6cxBGLa6+GM4hRwexE= +google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3/go.mod h1:kdrSS/OiLkPrNUpzD4aHgCq2rVuC/YRxok32HXZ4vRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240610135401-a8a62080eff3 h1:9Xyg6I9IWQZhRVfCWjKK+l6kI0jHcPesVlMnT//aHNo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240610135401-a8a62080eff3/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= -google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -344,10 +333,8 @@ google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/packaging/chocolatey/bitbucket-cli.nuspec b/packaging/chocolatey/bitbucket-cli.nuspec index 5550258..04285b9 100644 --- a/packaging/chocolatey/bitbucket-cli.nuspec +++ b/packaging/chocolatey/bitbucket-cli.nuspec @@ -3,7 +3,7 @@ bitbucket-cli - 0.10.1 + 0.10.2 Gildas Cherruel bitbucket-cli (Install) Gildas Cherruel @@ -18,7 +18,7 @@ Command line interface for Bitbucket The Bitbucket Command Line Interface brings the power of the Bitbucket platform to your command line. Creating and merging Pull Requests, cloning repositories, and more are now just a few keystrokes away. -- bb can display a progress bar during uploads and downloads. +- Fixed a crash when creating a profile the first time diff --git a/packaging/chocolatey/tools/chocolateyinstall.ps1 b/packaging/chocolatey/tools/chocolateyinstall.ps1 index b943520..a6c62b7 100644 --- a/packaging/chocolatey/tools/chocolateyinstall.ps1 +++ b/packaging/chocolatey/tools/chocolateyinstall.ps1 @@ -5,7 +5,7 @@ $packageArgs = @{ packageName = $env:ChocolateyPackageName unzipLocation = $toolsDir fileType = 'exe' - file64 = "$toolsDir\bitbucket-cli-0.10.1-windows-amd64.7z" + file64 = "$toolsDir\bitbucket-cli-0.10.2-windows-amd64.7z" softwareName = 'bitbucket-cli*' checksum64 = '47f6365beafe807da2274632fafc34fa5ae2b08cee99436f4fc29075636972a0' checksumType64= 'sha256' diff --git a/packaging/package-description.xml b/packaging/package-description.xml index 18e220a..9d4dc14 100644 --- a/packaging/package-description.xml +++ b/packaging/package-description.xml @@ -11,6 +11,7 @@ Note: This snapcraft is not affiliated with Atlassian. + diff --git a/packaging/snap/snapcraft.yaml b/packaging/snap/snapcraft.yaml index e985764..3239872 100644 --- a/packaging/snap/snapcraft.yaml +++ b/packaging/snap/snapcraft.yaml @@ -10,7 +10,7 @@ website: https://bitbucket.org/gildas_cherruel/bb source-code: https://bitbucket.org/gildas_cherruel/bb issues: https://bitbucket.org/gildas_cherruel/bb/issues license: MIT -version: 0.10.1 +version: 0.10.2 base: core22 grade: stable confinement: strict diff --git a/version.go b/version.go index 8d92944..f95518b 100644 --- a/version.go +++ b/version.go @@ -12,7 +12,7 @@ var branch string var stamp string // VERSION is the version of this application -var VERSION = "0.10.1" +var VERSION = "0.10.2" // APP is the name of the application const APP = "bb"