-
Notifications
You must be signed in to change notification settings - Fork 21
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
Don't commit assets #199
Don't commit assets #199
Conversation
It's tested this locally, and for me |
thanks for testing! I'll re-test with a clean state. |
Also if it's not too complex it would be good to test it in travis. Maybe a |
good idea! 👍 |
Signed-off-by: Maxim Sukharev <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
|
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.
don't like the idea of having code with subtle differences doing the same in different projects, but ok
LGTM
GO_BUILD_ARGS := -ldflags "$(LD_FLAGS)" -tags "$(WITH_STATIC_TAG)" | ||
|
||
# Environment and arguments to use in `go run` calls. | ||
GO_RUN_ARGS += -tags "$(WITH_STATIC_TAG)" |
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.
this didn't came from lookout-web
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.
in lookout-web it looks like this: https://github.com/src-d/lookout/blob/master/Makefile.web#L69
same-same
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.
kind of same functionality, but subtle different code (ie. GO_RUN_ARGS
does not appear in that Makefile.web
)
But as I said, not blocker at all, so we can merge as it is.
(I also locally tested, and worked like a charm)
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.
yeah. Maybe we can actually extract go-handler part & Makefile somewhere and then just re-use in our projects. @carlosms wdyt? Shall I create an issue for that?
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.
+1
I've been proposing that since years 🎉
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.
sounds good to me. Let's open that issue :)
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.
GO_RUN_ARGS += -tags "$(WITH_STATIC_TAG)" | ||
|
||
GOCMD = go | ||
GORUN = $(GOCMD) run $(GO_RUN_ARGS) |
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.
not in lookout-web
pretty good idea adding integration tests ! 🎉 |
// we handle urls on frontend | ||
r.NoRoute(func(c *gin.Context) { c.File(indexPath) }) | ||
|
||
// TODO(@smacker): add configuration for ServerURL and FooterHTML |
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.
This is functionality brought from the code c&p from lookout, but we can't use yet in bblfsh web, right?
Should we have an issue for this, to implement it later?
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.
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.
👍
fix #192
Now it works the same as any other apps project.
I also replaced bindata with esc.
static_files_dev.go
&static_files.go
are 100% copy-paste from lookout-web.Makefile still looks a bit strange but changing it is out of the scope.