-
Notifications
You must be signed in to change notification settings - Fork 113
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
Prevent duplicate app dir paths #223
Conversation
06cc2f3
to
45cfe68
Compare
Resolves #222 Signed-off-by: Javier Romero <[email protected]>
45cfe68
to
5a1ef31
Compare
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.
Cleaning the app dir path seems like a good thing to do. However, I feel that we should address the issue in the archive
package (in our layer creation logic) that results in duplicate entries in these cases. If the path is valid that archive package should handle it correctly. I also think we should test edge cases (.e.g a path with .
) in tar_test.go
.
Also may be a good idea to clean the layer directory, like we do for builder: Lines 58 to 69 in 5a1ef31
|
RE: @ekcasey |
@jromero One could make a case for moving some of this logic to Whether we extract this package to a shared location or not, I do believe we should fix the core issue in the |
Signed-off-by: Javier Romero <[email protected]>
Signed-off-by: Javier Romero <[email protected]>
Signed-off-by: Javier Romero <[email protected]>
Signed-off-by: Javier Romero <[email protected]>
Signed-off-by: Javier Romero <[email protected]>
11d1c49
to
1b5fb99
Compare
Signed-off-by: Javier Romero <[email protected]>
Accepting - on
On master, we were able to successfully build the app image with the same invocation. Note, our acceptance steps used
|
Changes
-app ./some/path/
and-app /my-app/some/path/
would place the application source in different directories within the final imagesome/dir/
vssome/dir
vssome/dir/.
golangci
- I did this in an attempt to solve issues with scopelint.Makefile
to support incoming GOFLAGS - IntelliJ/Goland's built-in terminal provides this flag that then collides with-mod=vendor
and we get an error stating the it can only be specified once.Resolves #222
Sidenote
A concern that come up with the current implementation is that the app dir isn't configurable and is based directly off of the-app
argument. For example, in theory-app=/home/jromero/my-app
would yield with that directory location in the final image as/home/jromero/my-app/
. My initial thought would be that there would be a standard app path location. Seems like this might have existed in PR #35 but has since been removed.Related to:
/layers
and the default app directory should be/workspace
#77