-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Move some stuff in the right packages #1006
Conversation
bb5a014
to
834ba29
Compare
@@ -21,10 +21,10 @@ WORKDIR /go/src/github.com/containous/traefik | |||
|
|||
COPY glide.yaml glide.yaml | |||
COPY glide.lock glide.lock | |||
RUN glide install -v | |||
RUN glide install --strip-vendor |
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.
@vdemeester why strip-vendor
?
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.
-v is the shortcut for --strip-vendor, it makes sense to use the full flag for documentation...
# Using gox to build multiple platform | ||
$ gox "linux darwin" "386 amd64 arm" \ | ||
-output="dist/traefik_{{.OS}}-{{.Arch}}" | ||
$ go build -o dist/traefik ./cmd/ |
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.
Do you really want to specify the output path? the binary is in the gitignore for the root directory. Instead, could you add a shim build in root that just "forwards" to ./cmd
? Sorry for the terrible terminology, but go build is such a simple dev command, that we really should fight to keep ;)
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.
Make sense 😛
834ba29
to
d2d43c5
Compare
ea46d3c
to
30b85fb
Compare
30b85fb
to
41e9483
Compare
- This will help split stuff in smaller, better tested packages - This moves some stuff like the traefik command to package `cmd` Signed-off-by: Vincent Demeester <vincent@sbr.pm>
41e9483
to
47894e5
Compare
@vdemeester What do you want to do with this PR? Closing? |
Should close this.. it's too old, I'll redo if I get some time 😝 |
cmd
Note that this is a start (and stays small) but the
server
package should be split up then, etc./cc @containous/traefik
🐸
Signed-off-by: Vincent Demeester vincent@sbr.pm