Skip to content

Commit

Permalink
Merge branch 'DX-2224' of https://github.com/ActiveState/cli into DX-…
Browse files Browse the repository at this point in the history
…2224
  • Loading branch information
mitchell-as committed Oct 30, 2023
2 parents 92da15e + 5a90844 commit 28acf47
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
4 changes: 0 additions & 4 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@ const ActiveStateSupportURL = "https://www.activestate.com/support/?utm_source=p
// ActiveStateDashboardURL is the URL for the ActiveState account preferences page
const ActiveStateDashboardURL = "https://platform.activestate.com/?utm_source=platform-application-gui&utm_medium=activestate-desktop&utm_content=drop-down&utm_campaign=maru"

// DashboardCommitURL is the URL used to inspect commits
// TODO: Can this be removed?
const DashboardCommitURL = "https://platform.activestate.com/commit/"

// BugTrackerURL is the URL of our bug tracker
const BugTrackerURL = "https://github.com/ActiveState/state-tool/issues"

Expand Down
2 changes: 0 additions & 2 deletions internal/runbits/rationalize/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ var ErrNotAuthenticated = errors.New("not authenticated")

var ErrActionAborted = errors.New("aborted by user")

var ErrHeadless = errors.New("headless")

type ErrAPI struct {
Wrapped error
Code int
Expand Down
3 changes: 2 additions & 1 deletion internal/runbits/requirements/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/ActiveState/cli/internal/prompt"
"github.com/ActiveState/cli/internal/rtutils/ptr"
"github.com/ActiveState/cli/internal/runbits"
"github.com/ActiveState/cli/internal/runbits/rationalize"
"github.com/ActiveState/cli/pkg/localcommit"
bpModel "github.com/ActiveState/cli/pkg/platform/api/buildplanner/model"
medmodel "github.com/ActiveState/cli/pkg/platform/api/mediator/model"
Expand Down Expand Up @@ -101,7 +102,7 @@ func (r *RequirementOperation) ExecuteRequirementOperation(requirementName, requ

var err error
if r.Project == nil {
return locale.NewInputError("err_no_project", "No project found")
return rationalize.ErrNoProject
}
out.Notice(locale.Tl("operating_message", "", r.Project.NamespaceString(), r.Project.Dir()))

Expand Down
6 changes: 0 additions & 6 deletions pkg/platform/model/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package model

import (
"fmt"
"strings"

"github.com/go-openapi/strfmt"

Expand Down Expand Up @@ -264,11 +263,6 @@ func ProjectURL(owner, name, commitID string) string {
return url
}

// CommitURL creates a valid platform commit URL for the given commit
func CommitURL(commitID string) string {
return fmt.Sprintf("%s/%s", strings.TrimSuffix(constants.DashboardCommitURL, "/"), commitID)
}

func AddBranch(projectID strfmt.UUID, label string) (strfmt.UUID, error) {
var branchID strfmt.UUID
addParams := projects.NewAddBranchParams()
Expand Down
5 changes: 3 additions & 2 deletions test/integration/bundle_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ func (suite *BundleIntegrationTestSuite) TestJSON() {
cp.ExpectExitCode(0)
AssertValidJSON(suite.T(), cp)

cp = ts.Spawn("checkout", "ActiveState-CLI/Bundles", ".")
cp.Expect("Skipping runtime setup")
cp = ts.SpawnWithOpts(
e2e.OptArgs("checkout", "ActiveState-CLI/Bundles", "."),
)
cp.Expect("Checked out project")
cp.ExpectExitCode(0)

Expand Down
5 changes: 3 additions & 2 deletions test/integration/package_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ func (suite *PackageIntegrationTestSuite) TestJSON() {
cp.ExpectExitCode(0)
AssertValidJSON(suite.T(), cp)

cp = ts.Spawn("checkout", "ActiveState-CLI/Packages-Perl", ".")
cp.Expect("Skipping runtime setup")
cp = ts.SpawnWithOpts(
e2e.OptArgs("checkout", "ActiveState-CLI/Packages-Perl", "."),
)
cp.Expect("Checked out project")
cp.ExpectExitCode(0)

Expand Down

0 comments on commit 28acf47

Please sign in to comment.