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

license-scan: prepare to publish to crates.io #211

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

cbgbt
Copy link
Contributor

@cbgbt cbgbt commented Oct 4, 2024

Description of changes:

  • Add copy of project licenses to crate
  • Add additional useful crate metadata to Cargo.toml

My intent is to follow this PR up with integration of release-plz for automated crate releases.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

license = "Apache-2.0 OR MIT"
authors = ["iliana destroyer of worlds <[email protected]>"]
repository = "https://github.com/bottlerocket-os/bottlerocket-sdk"
edition = "2018"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
edition = "2018"
edition = "2021"

Should we bump our edition and rust dependencies before we publish?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, a dependency bump is definitely in order.

We don't need to increment the edition as a blocker here though, Rust allows editions to peacefully coexist.

@cbgbt cbgbt force-pushed the license-scan-publish branch 2 times, most recently from 5035134 to c4ed74d Compare October 4, 2024 22:14
@cbgbt
Copy link
Contributor Author

cbgbt commented Oct 4, 2024

^ bump dependencies per @jpculp.

For whatever reason my new GitHub action won't run for this PR, but I'm hopeful that it's because it will run hereafter.

- "license-scan/**"
jobs:
build:
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we can use ubuntu-latest as a runner; it might need to be shared from the org level.

I noticed that the only core kit workflow to use this runner - golangci-lint.yaml doesn't seem to have triggered for a recent PR - so this might be a new change.

Try changing it to this and see if the workflow runs:

Suggested change
runs-on: ubuntu-latest
runs-on:
group: bottlerocket
labels: bottlerocket_ubuntu-latest_8-core

@cbgbt cbgbt force-pushed the license-scan-publish branch 7 times, most recently from 55076cd to eb3fb63 Compare October 8, 2024 04:34
@cbgbt
Copy link
Contributor Author

cbgbt commented Oct 8, 2024

I've tried all manner of reconfiguring this action and peering into the repository configurations and cannot for the life of me get the action to run in this PR.

@bcressey another possible culprit in the core-kit PR is that we possibly need double-wildcards here.

In any case, I'd appreciate another review. I'll open a test PR after this one is merged to see if it triggers the workflow.

@bcressey
Copy link
Contributor

bcressey commented Oct 8, 2024

In any case, I'd appreciate another review. I'll open a test PR after this one is merged to see if it triggers the workflow.

Sounds good, let's see what happens!

@cbgbt cbgbt merged commit 1e0fc9d into bottlerocket-os:develop Oct 8, 2024
@cbgbt cbgbt deleted the license-scan-publish branch October 8, 2024 18:08
@cbgbt cbgbt mentioned this pull request Oct 8, 2024
@ginglis13 ginglis13 mentioned this pull request Oct 10, 2024
6 tasks
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.

4 participants