Visitar URL original
-upatch and -u options does not work as expected; bring them back · Issue #95 · bwplotka/bingo · GitHub
Skip to content

-upatch and -u options does not work as expected; bring them back #95

Open

Description

@bwplotka

We had to skip test even:

	{
			name: "Use -u=patch to upgrade thanos package",
			do: func(t *testing.T, g *goEnv, p *testProject) {
				if !goVersion.LessThan(version.Go116) {
					// TODO(bwplotka): Fix. It's not critical feature though to block release.
					t.Skip("From Go 1.16 behavior changed: get: can't query version \"patch\" of module github.com/thanos-io/thanos/cmd/thanos: no existing version is required")
				}
				fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "--upatch", "thanos"))
			},
			expectRows: []row{
				// TODO(bwplotka) This will be painful to maintain, but well... improve it
				{name: "thanos", binName: "thanos-v0.21.1", pkgVersion: "github.com/thanos-io/thanos/cmd/thanos@v0.21.1"},
			},
			expectBinaries: []string{"thanos-v0.21.1"},
		},

Next steps:

  • Potentially remove u and upatch options with something home-made that tries to get literally latest commit/tag of provided repo.

Activity

  1. bwplotka commented on Jul 20, 2021

    @bwplotka
    OwnerAuthor

    Removing -u test too for now as it's misleading most of the time.

    {
    			name: "Use -u to upgrade thanos package",
    			do: func(t *testing.T, g *goEnv, p *testProject) {
    				fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-u", "thanos"))
    			},
    			expectRows: []row{
    				// TODO(bwplotka) This will be painful to maintain, but well... improve it
    				{name: "thanos", binName: "thanos-v0.21.1", pkgVersion: "github.com/thanos-io/thanos/cmd/thanos@v0.21.1"},
    			},
    			expectBinaries: []string{"thanos-v0.21.1"},
    		},
    
  2. changed the title [-]-upatch and -u options does not work as expected[/-] [+]-upatch and -u options does not work as expected; bring them back[/+] on Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions