Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Jan 28, 2025
1 parent 93ab7cd commit d6429fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nuget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/jfrog/jfrog-cli-core/v2/utils/ioutils"
"github.com/jfrog/jfrog-client-go/http/httpclient"
"github.com/jfrog/jfrog-client-go/utils/io"
"github.com/jfrog/jfrog-client-go/utils/log"
"net/http"
"os"
"os/exec"
Expand Down Expand Up @@ -322,6 +323,8 @@ func testSetupCommand(t *testing.T, packageManager project.ProjectType) {
// Run install some random (Nunit) package to test the setup command.
var output []byte
if packageManager == project.Dotnet {
output, err = exec.Command(packageManager.String(), "--version").Output()

Check failure on line 326 in nuget_test.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

ineffectual assignment to err (ineffassign)
log.Info("dotnet version: " + string(output))
output, err = exec.Command(packageManager.String(), "add", "package", "NUnit", "--version", version).Output()
} else {
output, err = exec.Command(packageManager.String(), "install", "NUnit", "-Version", version, "-OutputDirectory", t.TempDir(), "-NoHttpCache").Output()
Expand Down

0 comments on commit d6429fb

Please sign in to comment.