diff --git a/internal/runbits/requirements/requirements.go b/internal/runbits/requirements/requirements.go index ad2ab06a22..03c8515564 100644 --- a/internal/runbits/requirements/requirements.go +++ b/internal/runbits/requirements/requirements.go @@ -109,7 +109,7 @@ func (r *RequirementOperation) ExecuteRequirementOperation(requirementName, requ switch nsType { case model.NamespacePackage, model.NamespaceBundle: commitID, err := localcommit.Get(r.Project.Dir()) - if err != nil && !localcommit.IsFileDoesNotExistError(err) { + if err != nil { return errs.Wrap(err, "Unable to get local commit") } @@ -191,7 +191,7 @@ func (r *RequirementOperation) ExecuteRequirementOperation(requirementName, requ } parentCommitID, err := localcommit.Get(r.Project.Dir()) - if err != nil && !localcommit.IsFileDoesNotExistError(err) { + if err != nil { return errs.Wrap(err, "Unable to get local commit") } hasParentCommit := parentCommitID != "" diff --git a/test/integration/package_int_test.go b/test/integration/package_int_test.go index 77f4e4c4c4..776683b07d 100644 --- a/test/integration/package_int_test.go +++ b/test/integration/package_int_test.go @@ -470,6 +470,11 @@ func (suite *PackageIntegrationTestSuite) TestJSON() { cp.ExpectExitCode(0) AssertValidJSON(suite.T(), cp) + cp = ts.Spawn("checkout", "ActiveState-CLI/Perl-5.32", ".") + cp.Expect("Skipping runtime setup") + cp.Expect("Checked out project") + cp.ExpectExitCode(0) + cp = ts.SpawnWithOpts( e2e.OptArgs("checkout", "ActiveState-CLI/Packages-Perl", "."), e2e.OptAppendEnv("ACTIVESTATE_CLI_DISABLE_RUNTIME=false"),