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

[7.x](backport #457) Remove indirect build dependency on go-license-detector. #459

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 14, 2021

This is an automatic backport of pull request #457 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 14, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #459 updated

  • Start Time: 2021-06-15T11:36:34.461+0000

  • Duration: 4 min 13 sec

  • Commit: 2d98e9b

Test stats 🧪

Test Results
Failed 0
Passed 178
Skipped 0
Total 178

Trends 🧪

Image of Build Times

Image of Tests

@ruflin
Copy link
Member

ruflin commented Jun 15, 2021

@urso @scunningham Looks like the backport has some issue. Can someone take a look to get this in?

@@ -34,7 +34,9 @@ done

go mod tidy
go mod download
go list -m -json all $@ | go run go.elastic.co/go-licence-detector \
GOPATH=`go env GOPATH`
env GOBIN=$GOPATH/bin/ go install go.elastic.co/[email protected]
Copy link

Choose a reason for hiding this comment

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

latest or 0.4.0 (the Makefile uses latest)? In Beats we try to pin the version. Additionally we have a tools.go (that is not build) to enforce the pinning and gives us an entry in the sum file (go modules behavior changes every minor release).

An older discussion about go modules and build tools: golang/go#25922 (comment)

Unfortunately go get/install tend to mess with the local go.sum and sometimes go.mod file. A project trying to workaround that is: https://github.com/bwplotka/bingo

Choose a reason for hiding this comment

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

Would prefer to pin it. Can switch both to 0.5.0. Or can switch it to use tools.go. Not loving this design because it generates licenses statements on a bunch of build tools that are not part of the build, and futher confuses go.mod. Ideally the tools that we use to detect/generate licenses would be built outside the target tree.

This PR fails because the 7.x branch is not picking up the new go compiler. This pr: #436 was pushed to master and backported, however the PR did not actually update the go version . To fix that , this PR: #346 was pushed to master... and for some reason not back ported.

Once we get the jenkins file fixed up, this PR should work. We can then decided if go install is the wrong way to go.

@scunningham
Copy link

@Mergifyio rebase

* Remove indirect build dependency on go-license-detector.
The 'go tidy' command in go1.16.5 stripped the hash from go.sum breaking the dependencies-report script.
Explictly install the [email protected] script and invoke directly.

* Fix paths for schema generator and license as well.

* Properly version URL for schema-generate.

(cherry picked from commit 6f636f7)
@mergify
Copy link
Contributor Author

mergify bot commented Jun 15, 2021

Command rebase: success

Branch has been successfully rebased

@mergify mergify bot merged commit 74c4038 into 7.x Jun 15, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-457 branch June 15, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants