Skip to content
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

Closed

Conversation

vdemeester
Copy link
Contributor

  • This will help split stuff in smaller, better tested packages
  • This moves some stuff like the traefik command to package 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

@vdemeester vdemeester force-pushed the mini-packaging-refactoring branch 4 times, most recently from bb5a014 to 834ba29 Compare January 1, 2017 18:40
@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

@vdemeester why strip-vendor ?

Copy link
Contributor

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/
Copy link
Contributor

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 ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense 😛

@vdemeester vdemeester force-pushed the mini-packaging-refactoring branch from 834ba29 to d2d43c5 Compare January 18, 2017 09:26
@vdemeester vdemeester force-pushed the mini-packaging-refactoring branch 2 times, most recently from ea46d3c to 30b85fb Compare February 2, 2017 13:47
@emilevauge emilevauge force-pushed the mini-packaging-refactoring branch from 30b85fb to 41e9483 Compare February 2, 2017 17:05
- 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>
@SantoDE SantoDE force-pushed the mini-packaging-refactoring branch from 41e9483 to 47894e5 Compare February 5, 2017 13:41
@emilevauge emilevauge added this to the 1.3 milestone Feb 6, 2017
@emilevauge
Copy link
Member

@vdemeester What do you want to do with this PR? Closing?

@vdemeester
Copy link
Contributor Author

Should close this.. it's too old, I'll redo if I get some time 😝

@vdemeester vdemeester closed this Mar 7, 2017
@vdemeester vdemeester deleted the mini-packaging-refactoring branch March 7, 2017 13:51
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.

5 participants