diff --git a/chore/__debug_bin2080182539 b/chore/__debug_bin2080182539 new file mode 100755 index 0000000..e55695c Binary files /dev/null and b/chore/__debug_bin2080182539 differ diff --git a/chore/release/release.go b/chore/release/release.go new file mode 100644 index 0000000..ef9b62a --- /dev/null +++ b/chore/release/release.go @@ -0,0 +1,155 @@ +package chore + +import ( + "bufio" + "bytes" + "encoding/json" + "errors" + "fmt" + "net/http" + "os/exec" + "strings" + "time" + + "github.com/Masterminds/semver/v3" + "github.com/cli/go-gh/v2/pkg/api" + "github.com/go-git/go-git/v5" + "github.com/rs/zerolog/log" + + copyright "github.com/coreruleset/crs-toolchain/v2/chore/update_copyright" + "github.com/coreruleset/crs-toolchain/v2/context" +) + +const examplesPath = "util/crs-rules-check/examples" +const branchNameTemplate = "release/v%d.%d.%d" +const prTitleTemplate = "chore: release v%d.%d.%d" + +var logger = log.With().Str("component", "release").Logger() + +func Release(context *context.Context, repositoryPath string, version *semver.Version, sourceRef string) { + remoteName := findRemoteName() + if remoteName == "" { + logger.Fatal().Msg("failed to find remote for coreruleset/coreruleset") + } + fetchSourceRef(remoteName, sourceRef) + branchName := fmt.Sprintf(branchNameTemplate, version.Major(), version.Minor(), version.Patch()) + createAndCheckOutBranch(context, branchName, sourceRef) + copyright.UpdateCopyright(context, version, uint16(time.Now().Year()), []string{examplesPath}) + createCommit(context, branchName) + pushBranch(remoteName, branchName) + createPullRequest(version, branchName, sourceRef) +} + +func createAndCheckOutBranch(context *context.Context, branchName string, sourceRef string) { + if err := checkForCleanWorkTree(context); err != nil { + // FIXME + panic(err) + } + + out, err := runGit(context.RootDir(), "switch", "-c", branchName, sourceRef) + if err != nil { + logger.Fatal().Err(err).Bytes("command-output", out).Msg("failed to create commit for release") + } +} + +func createCommit(context *context.Context, branchName string) { + out, err := runGit(context.RootDir(), "commit", "-am", "chore: release "+branchName) + if err != nil { + logger.Fatal().Err(err).Bytes("command-output", out).Msg("failed to create commit for release") + } +} + +func checkForCleanWorkTree(context *context.Context) error { + repositoryPath := context.RootDir() + repo, err := git.PlainOpen(repositoryPath) + if err != nil { + //FIXME + panic(err) + } + worktree, err := repo.Worktree() + if err != nil { + //FIXME + panic(err) + } + status, err := worktree.Status() + if err != nil { + //FIXME + panic(err) + } + if !status.IsClean() { + // FIXME + return errors.New("worktree not clean. Please stash or commit your changes first") + } + return nil +} + +func createPullRequest(version *semver.Version, branchName string, targetBranchName string) { + opts := api.ClientOptions{ + Headers: map[string]string{"Accept": "application/octet-stream"}, + } + client, err := api.NewRESTClient(opts) + if err != nil { + log.Fatal().Err(err).Send() + } + + type prBody struct { + Title string `json:"title"` + Head string `json:"head"` + Base string `json:"base"` + Labels []string `json:"labels"` + Reviewer string `json:"reviewer"` + } + bodyJson, err := json.Marshal(&prBody{ + Title: fmt.Sprintf(prTitleTemplate, version.Major(), version.Minor(), version.Patch()), + Head: "coreruleset:" + branchName, + Base: targetBranchName, + Labels: []string{"release", "release:ignore"}, + Reviewer: "coreruleset/core-developers", + }) + if err != nil { + log.Fatal().Err(err).Msg("failed to serialize body of GH REST request") + } + + response, err := client.Request(http.MethodPost, "repos/coreruleset/coreruleset/pulls", bytes.NewReader(bodyJson)) + if err != nil { + log.Fatal().Err(err).Msg("creating PR failed") + } + defer response.Body.Close() +} + +func pushBranch(remoteName string, branchName string) { + out, err := runGit("push", remoteName, branchName) + if err != nil { + logger.Fatal().Err(err).Bytes("command-output", out) + } +} + +func fetchSourceRef(remoteName string, sourceRef string) { + out, err := runGit("fetch", remoteName, sourceRef) + if err != nil { + logger.Fatal().Err(err).Bytes("command-output", out) + } +} + +func runGit(repositoryPath string, args ...string) ([]byte, error) { + cmd := exec.Command("git", args...) + cmd.Dir = repositoryPath + return cmd.CombinedOutput() +} + +func findRemoteName() string { + out, err := runGit("remote", "-v") + if err != nil { + logger.Fatal().Err(err).Bytes("command-output", out) + } + var remoteName string + scanner := bufio.NewScanner(bytes.NewReader(out)) + for scanner.Scan() { + line := scanner.Text() + if strings.Contains(line, "coreruleset/coreruleset") { + remoteName = strings.Split(line, " ")[0] + } + } + + return remoteName +} diff --git a/chore/release/release_test.go b/chore/release/release_test.go new file mode 100644 index 0000000..bcd310f --- /dev/null +++ b/chore/release/release_test.go @@ -0,0 +1,106 @@ +package chore + +import ( + "fmt" + "os" + "os/exec" + "path" + "testing" + + "github.com/go-git/go-git/v5" + "github.com/go-git/go-git/v5/plumbing" + "github.com/stretchr/testify/suite" + + "github.com/coreruleset/crs-toolchain/v2/context" +) + +type choreReleaseTestSuite struct { + suite.Suite + repoDir string +} + +func (s *choreReleaseTestSuite) SetupTest() { + s.repoDir = s.T().TempDir() + + out, err := runGit(s.repoDir, "init", "-b", "main") + s.Require().NoError(err, string(out)) + + out, err = runGit(s.repoDir, "config", "user.email", "dummy@dummy.com") + s.Require().NoError(err, string(out)) + + out, err = runGit(s.repoDir, "config", "user.name", "dummy") + s.Require().NoError(err, string(out)) + + out, err = runGit(s.repoDir, "commit", "--allow-empty", "-m", "dummy") + s.Require().NoError(err, string(out)) +} + +func TestRunChoreReleaseTestSuite(t *testing.T) { + suite.Run(t, new(choreReleaseTestSuite)) +} + +func (s *choreReleaseTestSuite) TestCreateAndcheckoutBranch() { + branchName := "v1.2.3" + ctxt := context.New(s.repoDir, "") + createAndCheckOutBranch(ctxt, branchName, "main") + repo, err := git.PlainOpen(s.repoDir) + s.Require().NoError(err) + + branches, err := repo.Branches() + s.Require().NoError(err) + + found := false + var branchRef *plumbing.Reference + err = branches.ForEach(func(r *plumbing.Reference) error { + if r.Name().Short() == branchName { + found = true + branchRef = r + } + return nil + }) + s.Require().NoError(err) + s.True(found) + + headRef, err := repo.Head() + s.Require().NoError(err) + + s.Equal(branchRef.Hash(), headRef.Hash(), "New branch should have been checked out") +} + +func (s *choreReleaseTestSuite) TestCreateCommit() { + branchName := "v1.2.3" + ctxt := context.New(s.repoDir, "") + createAndCheckOutBranch(ctxt, branchName, "main") + + // Add something to commit, as `createCommit` doesn't allow empty commits + err := os.WriteFile(path.Join(s.repoDir, "file"), []byte("content"), os.ModePerm) + s.Require().NoError(err) + cmd := exec.Command("git", "add", ".") + cmd.Dir = s.repoDir + err = cmd.Run() + s.Require().NoError(err) + + createCommit(ctxt, branchName) + + repo, err := git.PlainOpen(s.repoDir) + s.Require().NoError(err) + worktree, err := repo.Worktree() + s.Require().NoError(err) + status, err := worktree.Status() + s.Require().NoError(err) + s.True(status.IsClean()) + + // HEAD has the new commit message + revision, err := repo.ResolveRevision("HEAD") + s.Require().NoError(err) + commit, err := repo.CommitObject(*revision) + s.Require().NoError(err) + s.Equal(fmt.Sprintf("chore: release %s\n", branchName), commit.Message) + + // parent of HEAD is main + parent, err := commit.Parent(0) + s.Require().NoError(err) + branchHash, err := repo.ResolveRevision(plumbing.Revision("main")) + s.Require().NoError(err) + s.Equal(*branchHash, parent.Hash) +} diff --git a/chore/update_copyright.go b/chore/update_copyright/update_copyright.go similarity index 82% rename from chore/update_copyright.go rename to chore/update_copyright/update_copyright.go index eb1ff50..7212f55 100644 --- a/chore/update_copyright.go +++ b/chore/update_copyright/update_copyright.go @@ -10,6 +10,7 @@ import ( "regexp" "strings" + "github.com/Masterminds/semver/v3" "github.com/rs/zerolog/log" "github.com/coreruleset/crs-toolchain/v2/context" @@ -19,7 +20,7 @@ import ( var logger = log.With().Str("component", "update-copyright").Logger() // UpdateCopyright updates the copyright portion of the rules files to the provided year and version. -func UpdateCopyright(ctxt *context.Context, version string, year string) { +func UpdateCopyright(ctxt *context.Context, version *semver.Version, year uint16, ignoredPaths []string) { err := filepath.WalkDir(ctxt.RootDir(), func(path string, d fs.DirEntry, err error) error { if err != nil { // abort @@ -29,6 +30,13 @@ func UpdateCopyright(ctxt *context.Context, version string, year string) { // continue return nil } + for _, ignoredPath := range ignoredPaths { + if strings.HasPrefix(path, ignoredPath) { + // continue + return nil + } + } + if strings.HasSuffix(d.Name(), ".conf") || strings.HasSuffix(d.Name(), ".example") { if err := processFile(path, version, year); err != nil { // abort @@ -43,7 +51,7 @@ func UpdateCopyright(ctxt *context.Context, version string, year string) { } } -func processFile(filePath string, version string, year string) error { +func processFile(filePath string, version *semver.Version, year uint16) error { logger.Info().Msgf("Processing %s", filePath) contents, err := os.ReadFile(filePath) @@ -63,16 +71,16 @@ func processFile(filePath string, version string, year string) error { // Ideally we have support in the future for a proper parser file, so we can use that to change it // in a more elegant way. Right now we just match strings. -func updateRules(version string, year string, contents []byte) ([]byte, error) { +func updateRules(version *semver.Version, year uint16, contents []byte) ([]byte, error) { scanner := bufio.NewScanner(bytes.NewReader(contents)) scanner.Split(bufio.ScanLines) output := new(bytes.Buffer) writer := bufio.NewWriter(output) replaceVersion := fmt.Sprintf("${1}%s", version) // only keep numbers from the version - onlyNumbersVersion := strings.Join(regexp.MustCompile(`\d+`).FindAllString(version, -1), "") + onlyNumbersVersion := strings.Join(regexp.MustCompile(`\d+`).FindAllString(version.String(), -1), "") replaceShortVersion := fmt.Sprintf("${1}%s", onlyNumbersVersion) - replaceYear := fmt.Sprintf("${1}%s${3}", year) + replaceYear := fmt.Sprintf("${1}%d${3}", year) replaceSecRuleVersion := fmt.Sprintf("${1}%s", version) replaceSecComponentSignature := fmt.Sprintf("${1}%s", version) for scanner.Scan() { diff --git a/chore/update_copyright_test.go b/chore/update_copyright/update_copyright_test.go similarity index 91% rename from chore/update_copyright_test.go rename to chore/update_copyright/update_copyright_test.go index 2e828ee..fc5eadb 100644 --- a/chore/update_copyright_test.go +++ b/chore/update_copyright/update_copyright_test.go @@ -6,6 +6,7 @@ package chore import ( "testing" + "github.com/Masterminds/semver/v3" "github.com/stretchr/testify/suite" ) @@ -13,9 +14,6 @@ type copyrightUpdateTestsTestSuite struct { suite.Suite } -func (s *copyrightUpdateTestsTestSuite) SetupTest() { -} - func TestRunUpdateCopyrightTestsTestSuite(t *testing.T) { suite.Run(t, new(copyrightUpdateTestsTestSuite)) } @@ -56,7 +54,9 @@ SecComponentSignature "OWASP_CRS/4.0.0-rc1" # SecComponentSignature "OWASP_CRS/9.1.22" ` - out, err := updateRules("9.1.22", "2042", []byte(contents)) + version, err := semver.NewVersion("9.1.22") + s.Require().NoError(err) + out, err := updateRules(version, 2042, []byte(contents)) s.Require().NoError(err) s.Equal(expected, string(out)) @@ -142,7 +142,9 @@ SecRule &TX:crs_setup_version "@eq 0" \ # SecComponentSignature "OWASP_CRS/4.99.12" ` - out, err := updateRules("4.99.12", "2041", []byte(contents)) + version, err := semver.NewVersion("4.99.12") + s.Require().NoError(err) + out, err := updateRules(version, 2041, []byte(contents)) s.Require().NoError(err) s.Equal(expected, string(out)) @@ -155,7 +157,9 @@ func (s *copyrightUpdateTestsTestSuite) TestUpdateCopyrightTests_AddsNewLine() { expected := `# ------------------------------------------------------------------------ # OWASP ModSecurity Core Rule Set ver.4.99.12 ` - out, err := updateRules("4.99.12", "2041", []byte(contents)) + version, err := semver.NewVersion("4.99.12") + s.Require().NoError(err) + out, err := updateRules(version, 2041, []byte(contents)) s.Require().NoError(err) s.Equal(expected, string(out)) @@ -169,7 +173,9 @@ func (s *copyrightUpdateTestsTestSuite) TestUpdateCopyrightTests_SupportsRelease expected := `# ------------------------------------------------------------------------ # OWASP ModSecurity Core Rule Set ver.4.1.0-rc1 ` - out, err := updateRules("4.1.0-rc1", "2041", []byte(contents)) + version, err := semver.NewVersion("4.1.0-rc1") + s.Require().NoError(err) + out, err := updateRules(version, 2041, []byte(contents)) s.Require().NoError(err) s.Equal(expected, string(out)) diff --git a/cmd/chore_release.go b/cmd/chore_release.go new file mode 100644 index 0000000..82a2206 --- /dev/null +++ b/cmd/chore_release.go @@ -0,0 +1,73 @@ +// Copyright 2022 OWASP Core Rule Set Project +// SPDX-License-Identifier: Apache-2.0 + +package cmd + +import ( + "os" + + "github.com/Masterminds/semver/v3" + "github.com/spf13/cobra" + + release "github.com/coreruleset/crs-toolchain/v2/chore/release" + "github.com/coreruleset/crs-toolchain/v2/context" +) + +var choreReleaseCmd = createChoreReleaseCommand() +var releaseVariables struct { + sourceRef string +} +var releaseParsedArgs struct { + repositoryPath string + version *semver.Version +} + +func init() { + buildChoreReleaseCommand() +} + +func createChoreReleaseCommand() *cobra.Command { + return &cobra.Command{ + Use: "release", + // FIXME + Short: "tbd", + Args: cobra.MatchAll(cobra.ExactArgs(2), cobra.OnlyValidArgs), + ValidArgs: []string{ + "version", + }, + PreRunE: func(cmd *cobra.Command, args []string) error { + repositoryPath := args[0] + + if _, err := os.Stat(repositoryPath); err != nil { + return err + } + releaseParsedArgs.repositoryPath = repositoryPath + + version, err := semver.NewVersion(args[1]) + if err != nil { + return err + } + releaseParsedArgs.version = version + + return nil + }, + Run: func(cmd *cobra.Command, args []string) { + rootContext := context.New(rootValues.workingDirectory.String(), rootValues.configurationFileName.String()) + release.Release(rootContext, releaseParsedArgs.repositoryPath, releaseParsedArgs.version, releaseVariables.sourceRef) + }, + } +} + +func buildChoreReleaseCommand() { + choreCmd.AddCommand(choreReleaseCmd) + choreReleaseCmd.Flags().StringVarP(&releaseVariables.sourceRef, "source-ref", "s", "main", "Source reference for the release branch") +} + +func rebuildChoreReleaseCommand() { + if choreReleaseCmd != nil { + choreReleaseCmd.Parent().RemoveCommand(choreReleaseCmd) + } + + choreReleaseCmd = createChoreReleaseCommand() + buildChoreReleaseCommand() +} diff --git a/cmd/chore_test.go b/cmd/chore_test.go index 29752a9..047a996 100644 --- a/cmd/chore_test.go +++ b/cmd/chore_test.go @@ -22,6 +22,7 @@ type choreTestSuite struct { func (s *choreTestSuite) SetupTest() { rebuildChoreCommand() rebuildChoreUpdateCopyrightCommand() + rebuildChoreReleaseCommand() tempDir, err := os.MkdirTemp("", "chore-tests") s.Require().NoError(err) @@ -58,7 +59,7 @@ func (s *choreTestSuite) TestChore_RulesFile() { # # This file REQUEST-901-INITIALIZATION.conf initializes the Core Rules`) - rootCmd.SetArgs([]string{"-d", s.tempDir, "chore", "update-copyright", "-v", "1.2.3", "-y", "1234"}) + rootCmd.SetArgs([]string{"-d", s.tempDir, "chore", "update-copyright", "-v", "1.2.3", "-y", "2024"}) _, err := rootCmd.ExecuteC() s.Require().NoError(err, "failed to execute rootCmd") diff --git a/cmd/chore_update_copyright.go b/cmd/chore_update_copyright.go index 7555bb2..3a1a083 100644 --- a/cmd/chore_update_copyright.go +++ b/cmd/chore_update_copyright.go @@ -4,34 +4,30 @@ package cmd import ( - "strconv" + "fmt" "time" "github.com/Masterminds/semver/v3" "github.com/spf13/cobra" - "github.com/coreruleset/crs-toolchain/v2/chore" + copyright "github.com/coreruleset/crs-toolchain/v2/chore/update_copyright" "github.com/coreruleset/crs-toolchain/v2/context" ) var choreUpdateCopyrightCmd = createChoreUpdateCopyrightCommand() var copyrightVariables struct { - Version string - Year string + Version string + Year uint16 + IgnoredPaths []string +} +var copyrightParsedVariables struct { + version *semver.Version } func init() { buildChoreUpdateCopyrightCommand() } -func validateSemver(version string) error { - _, err := semver.NewVersion(version) - if err != nil { - return err - } - return nil -} - func createChoreUpdateCopyrightCommand() *cobra.Command { return &cobra.Command{ Use: "update-copyright", @@ -40,22 +36,29 @@ func createChoreUpdateCopyrightCommand() *cobra.Command { if copyrightVariables.Version == "" { return ErrUpdateCopyrightWithoutVersion } - if err := validateSemver(copyrightVariables.Version); err != nil { + version, err := semver.NewVersion(copyrightVariables.Version) + if err != nil { return err } + copyrightParsedVariables.version = version + + if copyrightVariables.Year < 1970 || copyrightVariables.Year > 9999 { + return fmt.Errorf("year outside of valid range [1970, 9999]: %d", copyrightVariables.Year) + } return nil }, Run: func(cmd *cobra.Command, args []string) { rootContext := context.New(rootValues.workingDirectory.String(), rootValues.configurationFileName.String()) - chore.UpdateCopyright(rootContext, copyrightVariables.Version, copyrightVariables.Year) + copyright.UpdateCopyright(rootContext, copyrightParsedVariables.version, copyrightVariables.Year, copyrightVariables.IgnoredPaths) }, } } func buildChoreUpdateCopyrightCommand() { choreCmd.AddCommand(choreUpdateCopyrightCmd) - choreUpdateCopyrightCmd.Flags().StringVarP(©rightVariables.Year, "year", "y", strconv.Itoa(time.Now().Year()), "Four digit year") + choreUpdateCopyrightCmd.Flags().Uint16VarP(©rightVariables.Year, "year", "y", uint16(time.Now().Year()), "Four digit year") choreUpdateCopyrightCmd.Flags().StringVarP(©rightVariables.Version, "version", "v", "", "Add this text as the version to the file.") + choreUpdateCopyrightCmd.Flags().StringArrayVarP(©rightVariables.IgnoredPaths, "ignore", "i", []string{}, "Comma separated list of paths to ignore") } func rebuildChoreUpdateCopyrightCommand() { diff --git a/go.mod b/go.mod index cdc6b29..652d091 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,9 @@ require ( require ( github.com/Masterminds/semver/v3 v3.3.1 + github.com/cli/go-gh/v2 v2.11.1 github.com/creativeprojects/go-selfupdate v1.4.0 + github.com/go-git/go-git/v5 v5.13.0 github.com/google/uuid v1.6.0 github.com/itchyny/rassemble-go v0.1.2 gopkg.in/yaml.v3 v3.0.1 @@ -17,25 +19,53 @@ require ( require ( code.gitea.io/sdk/gitea v0.19.0 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/ProtonMail/go-crypto v1.1.3 // indirect + github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/cli/safeexec v1.0.0 // indirect + github.com/cli/shurcooL-graphql v0.0.4 // indirect + github.com/cloudflare/circl v1.3.7 // indirect + github.com/cyphar/filepath-securejoin v0.2.5 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/davidmz/go-pageant v1.0.2 // indirect + github.com/emirpasic/gods v1.18.1 // indirect github.com/go-fed/httpsig v1.1.0 // indirect + github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect + github.com/go-git/go-billy/v5 v5.6.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/google/go-github/v30 v30.1.0 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-version v1.7.0 // indirect - github.com/kr/pretty v0.2.0 // indirect + github.com/henvic/httpretty v0.0.6 // indirect + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/muesli/termenv v0.15.2 // indirect + github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect + github.com/skeema/knownhosts v1.3.0 // indirect + github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect github.com/ulikunitz/xz v0.5.12 // indirect github.com/xanzy/go-gitlab v0.112.0 // indirect + github.com/xanzy/ssh-agent v0.3.3 // indirect golang.org/x/crypto v0.31.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect + golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.7.0 // indirect - gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect ) require ( diff --git a/go.sum b/go.sum index 8b6f97b..3384b31 100644 --- a/go.sum +++ b/go.sum @@ -4,23 +4,61 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4= github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +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/ProtonMail/go-crypto v1.1.3 h1:nRBOetoydLeUb4nHajyO2bKqMLfWQ/ZPwkXqXxPxCFk= +github.com/ProtonMail/go-crypto v1.1.3/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= +github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= +github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/cli/go-gh/v2 v2.11.1 h1:amAyfqMWQTBdue8iTmDUegGZK7c8kk6WCxD9l/wLtGI= +github.com/cli/go-gh/v2 v2.11.1/go.mod h1:MeRoKzXff3ygHu7zP+NVTT+imcHW6p3tpuxHAzRM2xE= +github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI= +github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q= +github.com/cli/shurcooL-graphql v0.0.4 h1:6MogPnQJLjKkaXPyGqPRXOI2qCsQdqNfUY1QSJu2GuY= +github.com/cli/shurcooL-graphql v0.0.4/go.mod h1:3waN4u02FiZivIV+p1y4d0Jo1jc6BViMA73C+sZo2fk= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creativeprojects/go-selfupdate v1.4.0 h1:4ePPd2CPCNl/YoPXeVxpuBLDUZh8rMEKP5ac+1Y/r5c= github.com/creativeprojects/go-selfupdate v1.4.0/go.mod h1:oPG7LmzEmS6OxfqEm620k5VKxP45xFZNKMkp4V5qqUY= +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 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davidmz/go-pageant v1.0.2 h1:bPblRCh5jGU+Uptpz6LgMZGD5hJoOt7otgT454WvHn0= github.com/davidmz/go-pageant v1.0.2/go.mod h1:P2EDDnMqIwG5Rrp05dTRITj9z2zpGcD9efWSkTNKLIE= +github.com/elazarl/goproxy v1.2.1 h1:njjgvO6cRG9rIqN2ebkqy6cQz2Njkx7Fsfv/zIZqgug= +github.com/elazarl/goproxy v1.2.1/go.mod h1:YfEbZtqP4AetfO6d40vWchF3znWX7C7Vd6ZMfdL8z64= +github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= +github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI= github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM= +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.6.0 h1:w2hPNtoehvJIxR00Vb4xX94qHQi/ApZfX+nBE2Cjio8= +github.com/go-git/go-billy/v5 v5.6.0/go.mod h1:sFDq7xD3fn3E0GOwUSZqHo9lrkmx8xJhA0ZrfvjBRGM= +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.13.0 h1:vLn5wlGIh/X78El6r3Jr+30W16Blk0CTcxTYcYPWi5E= +github.com/go-git/go-git/v5 v5.13.0/go.mod h1:Wjo7/JyVKtQgUNdXYXIepzWfJQkUEIGvkvVkiXRR/zw= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +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/go-github/v30 v30.1.0 h1:VLDx+UolQICEOKu2m4uAoMti1SxuEBAl7RSEG16L+Oo= github.com/google/go-github/v30 v30.1.0/go.mod h1:n8jBpHl45a/rlBUtRJMOG4GhNADUQFEufcolZ95JfU8= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -28,6 +66,8 @@ github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= 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/h2non/parth v0.0.0-20190131123155-b4df798d6542 h1:2VTzZjLZBgl62/EtslCrtky5vbi9dd7HrQPQIx6wqiw= +github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= @@ -36,52 +76,104 @@ github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISH github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/henvic/httpretty v0.0.6 h1:JdzGzKZBajBfnvlMALXXMVQWxWMF/ofTy8C3/OSUTxs= +github.com/henvic/httpretty v0.0.6/go.mod h1:X38wLjWXHkXT7r2+uK8LjCMne9rsuNaBLJ+5cU2/Pmo= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/itchyny/rassemble-go v0.1.2 h1:4Jtms+JnlXJPbBfeXzdgXf/TJnFWilFzA6bXn+ZF6yM= github.com/itchyny/rassemble-go v0.1.2/go.mod h1:VWc9FWUhn/1G2gGivJlq+K9toP2ylbKOwO46P/bPZFo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= +github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= +github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= +github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= +github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= +github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k= +github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY= +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= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +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/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +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.3.0 h1:AM+y0rI04VksttfwjkSTNQorvGqmwATnvnAHpSgc0LY= +github.com/skeema/knownhosts v1.3.0/go.mod h1:sPINvnADmT/qYH1kfv+ePMmOBTH6Tbl7b5LvTDjFK7M= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= 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/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e h1:BuzhfgfWQbX0dWzYzT1zsORLnHRv3bcRcsaUk0VmXA8= +github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e/go.mod h1:/Tnicc6m/lsJE0irFMA0LfIwTBo4QP7A8IfyIv4zZKI= github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/xanzy/go-gitlab v0.112.0 h1:6Z0cqEooCvBMfBIHw+CgO4AKGRV8na/9781xOb0+DKw= github.com/xanzy/go-gitlab v0.112.0/go.mod h1:wKNKh3GkYDMOsGmnfuX+ITCmDuSDWFO0G+C4AygL9RY= +github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= +github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8= +golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -92,13 +184,25 @@ golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= 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.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 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= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/h2non/gock.v1 v1.1.2 h1:jBbHXgGBK/AoPVfJh5x4r/WxIrElvbLel8TCZkkZJoY= +gopkg.in/h2non/gock.v1 v1.1.2/go.mod h1:n7UGz/ckNChHiK05rDoiC4MYSunEC/lyaUm2WWaDva0= +gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=