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

chore: implement --about #3817

Merged
merged 1 commit into from
Sep 5, 2022
Merged

chore: implement --about #3817

merged 1 commit into from
Sep 5, 2022

Conversation

PeterSchafer
Copy link
Collaborator

What does this PR do?

This PR add golang based licenses to the --about dialog. It adds retrieving the licenses on the fly to the build process, bundles them into the binary and prints them to the end of the typescript based license content.

Where should the reviewer start?

  • Retrieve licenses: scripts/prepare_licenses.sh
  • Bundle licenses: internal/embedded/file.go
  • Print licenses: internal/cliv2/cliv2.go

How should this be manually tested?

Run the cli with --about, pipe the output into a file and compare the output with the same output for the typescript cli

cliv2/.gitignore Outdated Show resolved Hide resolved
@PeterSchafer PeterSchafer force-pushed the chore/cliv2_HMMR-532 branch 3 times, most recently from d15d255 to 2163e2a Compare September 5, 2022 14:33
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: add go license

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: remove placeholder licnese file

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: add simple —about implementation …

… combining —about from cliv1 and local output

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: add readme and remove license file

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: update git ignore

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: add generation of 3rd party licenses to Makefile

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: adapt output format of —about

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: adapt go-license usage

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: print license files

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: change installation of go-license

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: fix issue when cross compiling

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: adding manual download for missing licenses

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
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.

2 participants