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

Revert "Show list of enabled feature with rerun --version" #7770

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 16, 2024

The PR caused the crate publishing step to fail with this message:

Failed to publish re_sdk:
error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
  Added: /home/runner/work/rerun/rerun/target/package/re_sdk-0.19.0-alpha.9/Cargo.lock

(https://github.com/rerun-io/rerun/actions/runs/11350925172/job/31573371223)

I don't know why, and this close to release I don't have time to figure out why.

@emilk emilk added ⛴ release Related to shipping or publishing exclude from changelog PRs with this won't show up in CHANGELOG.md labels Oct 16, 2024
@emilk emilk merged commit a064131 into main Oct 16, 2024
34 checks passed
@emilk emilk deleted the revert-7744-emilk/auto-feature-flags branch October 16, 2024 09:18
emilk added a commit that referenced this pull request Oct 24, 2024
Wumpf pushed a commit that referenced this pull request Oct 25, 2024
* Reverts #7770
* Re-applies #7744

The revert was because during `cargo publish`, a `Cargo.lock` file
materialized, and that made cargo angry:

```
Failed to publish re_sdk:
error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
  Added: /home/runner/work/rerun/rerun/target/package/re_sdk-0.19.0-alpha.9/Cargo.lock
```

So in this PR we only query about which cargo features if we're NOT in a
`cargo publish` build. That should work! We'll know when we next publish
some crates :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md ⛴ release Related to shipping or publishing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant