Skip to content

Execute go commands in subshell w/ repo working directory#6

Open
jmwample wants to merge 1 commit intoqdeconinck:conext17from
jmwample:conext17
Open

Execute go commands in subshell w/ repo working directory#6
jmwample wants to merge 1 commit intoqdeconinck:conext17from
jmwample:conext17

Conversation

@jmwample
Copy link

@jmwample jmwample commented Mar 3, 2022

Versions of golang centered around modules require the context of the module files to build or run golang programs. Running from the working directory of the scripts fails for newer versions of golang.

By running the go commands (build for Quic, and run for QuicReqres) in a subshell the working directory of the script is preserved and the module files can be properly accessed.

This solution works for golang 1.17.7 and should be backwards compatible to 1.9.2+ which the original artifacts use (should because packages don't compile properly on 1.9.2 anymore).

@qdeconinck
Copy link
Owner

Thanks for your contribution. However, I'm not sure if this is actually useful/compatible with old 1.9 Go version.

Another point is that you target your PR on conext17, which is somewhat frozen for artefact reasons. If you want to include new features, please target minitopo2. If you want to specifically target conext17, please provide further explanation.

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.

2 participants