-
Notifications
You must be signed in to change notification settings - Fork 1
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: Fix filepath setup #198
Conversation
c8d12f5
to
428ad86
Compare
0d38aa8
to
cd8319c
Compare
cd8319c
to
8ffc1d9
Compare
With the new mountPath spec, you can assume users specify a full/correct path in harness
8ffc1d9
to
bb51e31
Compare
@@ -38,7 +36,7 @@ func (in *environment) prepareFiles() error { | |||
} | |||
|
|||
for _, fragment := range in.stackRun.Files { | |||
destination := path.Join(in.filesDir, fragment.Path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC it will require user to provide full path including harness working dir, i.e. /plural/tf-test/...
. Isn't it more prone to errors? Any other root level dir than /plural
will not work currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to specify .
as the mount path, and then it would be something like ./creds.json
. I do think we should probably make some other folders writable though i just can't think of which at the moment (also think there probably will need to be a home folder for the user).
The problem I faced though was I didn't know the path at config-time at first, so it was a bit tricky to set things like GOOGLE_APPLICATION_CREDENTIALS properly, if you have full understanding of the path that's more straightforward.
With the new mountPath spec, you can assume users specify a full/correct path in harness