Skip to content

Symlink license files so they are included when publishing crates #477

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

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

michel-slm
Copy link
Contributor

Fixes #392

Verify that license files are symlinked correctly

❯ sha512sum LICENSE */LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-backend/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-bitmap/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-svg/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters/LICENSE

Verify that license files are included

michel in plotters/plotters on  add-license is 📦 v0.3.5 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify
   Packaging plotters v0.3.5 (/home/michel/src/github/plotters-rs/plotters/plotters)
    Updating crates.io index
    Packaged 113 files, 686.6KiB (147.8KiB compressed)

michel in plotters/plotters on  add-license is 📦 v0.3.5 via 🦀 v1.69.0 took 2m20s
⬢ [fedora-toolbox:38] ❯ tar tf ../target/package/plotters-0.3.5.crate | grep LICENSE
plotters-0.3.5/LICENSE

Fixes plotters-rs#392

Verify that license files are symlinked correctly
```
❯ sha512sum LICENSE */LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-backend/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-bitmap/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters-svg/LICENSE
e31022efad73ac9d9d9cd64b5030fd009610818413d5cec6ee98c82bdc3e71d6e9554f0a49c8b8401d7b63f8677fe392093527d6dbe5237b077314915e4ebaaf  plotters/LICENSE
```

Verify that license files are included
```
michel in plotters/plotters on  add-license is 📦 v0.3.5 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify
   Packaging plotters v0.3.5 (/home/michel/src/github/plotters-rs/plotters/plotters)
    Updating crates.io index
    Packaged 113 files, 686.6KiB (147.8KiB compressed)

michel in plotters/plotters on  add-license is 📦 v0.3.5 via 🦀 v1.69.0 took 2m20s
⬢ [fedora-toolbox:38] ❯ tar tf ../target/package/plotters-0.3.5.crate | grep LICENSE
plotters-0.3.5/LICENSE
```

Signed-off-by: Michel Alexandre Salim <[email protected]>
Copy link
Member

@AaronErhardt AaronErhardt left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

[BUG] latest published versions no longer contain LICENSE files
2 participants