Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add /usr/sd-static/bin to PATH #464

Merged
merged 1 commit into from
Oct 29, 2023
Merged

fix: add /usr/sd-static/bin to PATH #464

merged 1 commit into from
Oct 29, 2023

Conversation

DekusDenial
Copy link
Contributor

provide bin path to statically linked executables

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@@ -157,7 +157,7 @@ func doRunCommand(guid, path string, emitter screwdriver.Emitter, f *os.File, fR
// Executes teardown commands
func doRunTeardownCommand(cmd screwdriver.CommandDef, emitter screwdriver.Emitter, shellBin, exportFile, sourceDir string, stepExitCode int) (int, error) {
shargs := []string{"-e", "-c"}
cmdStr := "export PATH=${PATH}:/opt/sd:/usr/sd/bin SD_STEP_EXIT_CODE=" + strconv.Itoa(stepExitCode) + " && " +
cmdStr := "export PATH=${PATH}:/opt/sd:/usr/sd/bin:/usr/sd-static/bin SD_STEP_EXIT_CODE=" + strconv.Itoa(stepExitCode) + " && " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not reuse existing /usr/sd/bin ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like what the name implies, need to separate static and dynamic binaries

@DekusDenial DekusDenial merged commit 483fb02 into master Oct 29, 2023
1 check passed
@DekusDenial DekusDenial deleted the sd-static branch October 29, 2023 21:54
@adong
Copy link
Member

adong commented Nov 17, 2023

I was told the use case is to use statically compiled binaries
@kumada626

@DekusDenial
Copy link
Contributor Author

like git, as we tried to move away from using habitat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants