Skip to content

Simpler credits #3444

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

Closed
wants to merge 1 commit into from
Closed

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Dec 24, 2019

Requires #3436 to be merged first

Fixes #3443

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #3444 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted Files Coverage Δ
pkg/skaffold/util/tar.go 52.87% <0%> (-4.6%) ⬇️
...affold/kubernetes/portforward/kubectl_forwarder.go 65.85% <0%> (-2.44%) ⬇️

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

I don't agree with this change, I think it's important to use the go-licenses tool. See my comment.

${LICENSES} save "github.com/GoogleContainerTools/skaffold/cmd/skaffold" --save_path="${TMP_DIR}/skaffold-credits"
# Copy licenses
pushd vendor
LICENSES=$(find . \( -type f -name 'LICENSE*' -or -name 'COPYING*' -or -name 'NOTICE*' \))
Copy link
Contributor

Choose a reason for hiding this comment

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

Integrating with licenses is important and was intentional, so that we don't have to maintain this logic.
This line does not cover the logic of licenses. For example there is a requirement that Mozilla Public License licenses need to include the source as well.

The package moved to https://github.com/google/go-licenses and we will have to switch over to that. But I'd rather use that then this logic. This gives us flexibility and maintainability on the long run as well, e.g. if we switch over to downloading go modules instead of vendor directory, the library will work just as well, while this line will break.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. Makes sense. I tried https://github.com/google/go-license and it's slow as hell now. We need to find a way to make it faster or to make it not run each time we make install

Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean slow as hell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a simpler script to extract licenses for skaffold credits
3 participants