Skip to content

Commit

Permalink
hab version with release added (#8701)
Browse files Browse the repository at this point in the history
* hab version with release added

Signed-off-by: iamazzeez <[email protected]>

* TestInstallHabitat test case fix

Signed-off-by: iamazzeez <[email protected]>

---------

Signed-off-by: iamazzeez <[email protected]>
  • Loading branch information
iamazzeez authored Dec 18, 2024
1 parent aa19964 commit d0776af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/automate-deployment/pkg/target/local_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -1358,10 +1358,11 @@ func (t *LocalTarget) installHabViaInstallScript(ctx context.Context, requiredVe
}

version := requiredVersion.Version()
versionWithRelease := version + "/" + requiredVersion.Release()

output, execErr := t.Executor.CombinedOutput(
"bash",
command.Args(script.Name(), "-v", version),
command.Args(script.Name(), "-v", versionWithRelease),
command.Envvar("TMPDIR", t.habTmpDir()),
command.Context(ctx),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func TestInstallHabitat(t *testing.T) {
mockExec.Expect("CombinedOutput", command.ExpectedCommand{
Env: []string{fmt.Sprintf("TMPDIR=%s/tmp", tempDir)},
Cmd: "bash",
Args: []string{filename, "-v", "0.54.0"},
Args: []string{filename, "-v", "0.54.0/20180221022026"},
}).Return("", installError).Once()
}

Expand Down

0 comments on commit d0776af

Please sign in to comment.