Skip to content

Commit

Permalink
Merge branch 'version/0-42-0-RC1' into DX-2224
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Oct 25, 2023
2 parents 33ce693 + aba5abc commit be532ea
Show file tree
Hide file tree
Showing 12 changed files with 386 additions and 203 deletions.
2 changes: 1 addition & 1 deletion cmd/state/internal/cmdtree/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func newCommitCommand(prime *primer.Values) *captain.Command {
},
)

cmd.SetGroup(EnvironmentSetupGroup)
cmd.SetGroup(EnvironmentSetupGroup).SetUnstable(true)

return cmd
}
3 changes: 3 additions & 0 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const DisableProjectMigrationPrompt = "ACTIVESTATE_CLI_DISABLE_PROJECT_MIGRATION
// UpdateBranchEnvVarName is the env var that is used to override which branch to pull the update from
const UpdateBranchEnvVarName = "ACTIVESTATE_CLI_UPDATE_BRANCH"

// InstallBuildDependencies is the env var that is used to override whether to install build dependencies
const InstallBuildDependencies = "ACTIVESTATE_CLI_INSTALL_BUILD_DEPENDENCIES"

// InternalConfigFileNameLegacy is effectively the same as InternalConfigName, but includes our preferred extension
const InternalConfigFileNameLegacy = "config.yaml"

Expand Down
2 changes: 2 additions & 0 deletions internal/locale/locales/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2077,3 +2077,5 @@ projectmigration_confirm:
Would you like to perform the migration now?
err_searchingredient_toomany:
other: Too many ingredients match the query '[ACTIONABLE]{{.V0}}[/RESET]', please try to be more specific.
alternative_unknown_pkg_name:
other: unknown
2 changes: 1 addition & 1 deletion pkg/platform/api/buildplanner/model/buildplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (

// Tag types
TagSource = "src"
TagDependency = "dep"
TagDependency = "deps"
TagBuilder = "builder"
TagOrphan = "orphans"

Expand Down
24 changes: 0 additions & 24 deletions pkg/platform/model/buildplanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,30 +113,6 @@ func (bp *BuildPlanner) FetchBuildResult(commitID strfmt.UUID, owner, project st
// response with emtpy targets that we should remove
removeEmptyTargets(build)

// Extract the available platforms from the build plan
var bpPlatforms []strfmt.UUID
for _, t := range build.Terminals {
if t.Tag == bpModel.TagOrphan {
continue
}
bpPlatforms = append(bpPlatforms, strfmt.UUID(strings.TrimPrefix(t.Tag, "platform:")))
}

// Get the platform ID for the current platform
platformID, err := FilterCurrentPlatform(HostPlatform, bpPlatforms)
if err != nil {
return nil, locale.WrapError(err, "err_filter_current_platform")
}

// Filter the build terminals to only include the current platform
var filteredTerminals []*bpModel.NamedTarget
for _, t := range build.Terminals {
if platformID.String() == strings.TrimPrefix(t.Tag, "platform:") {
filteredTerminals = append(filteredTerminals, t)
}
}
build.Terminals = filteredTerminals

buildEngine := Alternative
for _, s := range build.Sources {
if s.Namespace == "builder" && s.Name == "camel" {
Expand Down
Loading

0 comments on commit be532ea

Please sign in to comment.