Skip to content

use work_dir option for run_shell_cmd instead of global chdir in custom easyblock for Go#3327

Merged
boegel merged 1 commit intoeasybuilders:5.0.xfrom
Micket:go_workdir
May 21, 2024
Merged

use work_dir option for run_shell_cmd instead of global chdir in custom easyblock for Go#3327
boegel merged 1 commit intoeasybuilders:5.0.xfrom
Micket:go_workdir

Conversation

@Micket
Copy link
Copy Markdown
Contributor

@Micket Micket commented May 11, 2024

Just a simple starting example of what I believe we should strive to do basically everywhere rather than the semi-frequent use of the global os.chdir back and forth.

@Micket
Copy link
Copy Markdown
Contributor Author

Micket commented May 16, 2024

Test report by @Micket

Overview of tested easyconfigs (in order)

  • SUCCESS Go-1.22.1.eb

Build succeeded for 1 out of 1 (1 easyconfigs in total)
vera-skylake-build - Linux Rocky Linux 8.9, x86_64, Intel Xeon Processor (Skylake, IBRS, no TSX), Python 3.6.8
See https://gist.github.com/Micket/a07e4ab68ca790479d7d7c1538731ec3 for a full test report.

@boegel boegel changed the title Use work_dir for cmd instead of global chdir use work_dir option for run_shell_cmd instead of global chdir in custom easyblock for Go May 21, 2024
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit f7abe00 into easybuilders:5.0.x May 21, 2024
@Micket Micket deleted the go_workdir branch May 21, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants