Skip to content

chore: adding licenses to release archives and provide zip archive for windows#642

Merged
toddbaert merged 1 commit intoopen-feature:mainfrom
Kavindu-Dodan:chore/improve-release
May 8, 2023
Merged

chore: adding licenses to release archives and provide zip archive for windows#642
toddbaert merged 1 commit intoopen-feature:mainfrom
Kavindu-Dodan:chore/improve-release

Conversation

@Kavindu-Dodan
Copy link
Copy Markdown
Contributor

@Kavindu-Dodan Kavindu-Dodan commented May 5, 2023

This PR

Fixes #581 & #639

Third-party license artifacts #581

This PR improved release builds to add <module>-third-party-license.tar.gz to release artifacts. This artifact contains third-party licenses extracted using https://github.com/google/go-licenses.

This is an attempt to credit our dependencies and be license compliant (ex:- retaining copyright notices) where possible.

Note that, the go-license tool emits error if it fails to identify licenses (ex:- for non-go codes/internal deps). This breaks the build (as it writes to stderr) and the workaround was to use continue-on-error: true. Unfortunately, GH Actions do not provide any better alternative and refer [1] for ongoing discussions. Errors are accumulated to artifact module-license-errors.txt for anyone's interest.

Artefact archive format for Windows #639

PR further set .zip archiving for Windows (i386 & x86-64)

How to test

An example build was tested and a sample release is available here [2]. Please see license.tar.gz & licenseErrors.txt for third party license content

[1] - actions/runner#2347
[2] - https://github.com/Kavindu-Dodan/flag-test-ground/releases/tag/v0.1.7

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@Kavindu-Dodan Kavindu-Dodan requested review from a team, beeme1mr, thisthat and toddbaert May 5, 2023 19:49
@codecov
Copy link
Copy Markdown

codecov bot commented May 5, 2023

Codecov Report

Merging #642 (ac1e77b) into main (ef5af58) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #642   +/-   ##
=======================================
  Coverage   72.77%   72.77%           
=======================================
  Files          24       24           
  Lines        2384     2384           
=======================================
  Hits         1735     1735           
  Misses        583      583           
  Partials       66       66           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@toddbaert toddbaert self-requested a review May 5, 2023 20:22
Copy link
Copy Markdown
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

@Kavindu-Dodan Thanks for doing this! This should give us confidence to wave fossa alerts about distributing the license.

@toddbaert toddbaert merged commit 5060a0e into open-feature:main May 8, 2023
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.

Licence compliance (automated if possible)

3 participants