-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
workaround broken drone build #7362
workaround broken drone build #7362
Conversation
only master brach is not working, latest release seems to work Signed-off-by: Michael Gnehr <michael@gnehr.de>
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Codecov Report
@@ Coverage Diff @@
## master #7362 +/- ##
=========================================
Coverage ? 41.25%
=========================================
Files ? 467
Lines ? 63291
Branches ? 0
=========================================
Hits ? 26108
Misses ? 33766
Partials ? 3417 Continue to review full report at Codecov.
|
Perhaps instead of using go get we should use pre-built binaries from https://github.com/go-swagger/go-swagger/releases |
Would be possible too. Then we may need to check system architecture inside makefile. If this is required, I don't know how to select the right download in makefile. |
thanks for commit |
OK @techknowlogick do you think we can commit this so we have a working CI and then do the work of pinning our tools properly using a |
is the |
@Cherrg yeah something like that - however, I don't think I would add xgo as a direct tool dependency - it's not something that every person needs. So it appears its not xgo that is responsible for that PR being >1000 files - I am actually suspicious its go-swagger... OK in any case I think that could wait til 1.10 - we need to have a working CI now. |
OK I've git bisected to find the bad commit in go-swagger that breaks:
|
What's the difference between
and
It seems they are equal in go v1.12 |
@lunny First one fetches current master branch. The second one pulls the latest tagged release. please also consider #7362 (comment) (I'm on go v1.11, I need to set GO111MODULE="on" explicitlely.) |
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 kind of breaking compat (or at least not fixing the bug) for Go1.10 (before gitea 1.9 release) but this is LGTM for the transition since we will drop support for 1.10 soon. This should be fully fixed by a change similar to PR #6565 when dropping Go1.10.
mentioned here: go-gitea#7362 (comment) Signed-off-by: Michael Gnehr <michael@gnehr.de>
* workaround broken swagger only master brach is not working, latest release seems to work Signed-off-by: Michael Gnehr <michael@gnehr.de> * make vendor Signed-off-by: Michael Gnehr <michael@gnehr.de> * Don't export GO111MODULE * set go-swagger to fixed release version mentioned here: go-gitea#7362 (comment) Signed-off-by: Michael Gnehr <michael@gnehr.de>
make vendor
(Commit 2)this should only fix drone build, but don't not fix any swagger bug (if present)
affects #7356
Signed-off-by: Michael Gnehr michael@gnehr.de
i don't know if this breaks anything else