Skip to content

Commit

Permalink
fix(config)!: Turn off release with package.publish = false
Browse files Browse the repository at this point in the history
Fixes #399
  • Loading branch information
epage committed Oct 14, 2022
1 parent 18f5866 commit b35b462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ Workspace configuration is read from the following (in precedence order)
| `target` | \- | string | \- | Target triple to use for the verification build |
| `dependent-version` | \- | `upgrade`, `fix`, `error`, `warn`, `ignore` | `fix` | Policy for upgrading path dependency versions within the workspace |


Note: fields are from the package-configuration unless otherwise specified.

Note:
[`package.publish`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
is interpreted the same as `release = false`

### Supported Environment Variables

* `PUBLISH_GRACE_SLEEP`: sleep timeout between crates publish when releasing from workspace. This is a workaround to make previous crate discoverable on crates.io.
Expand Down
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ pub fn load_package_config(
.and_then(|f| f.as_bool())
.unwrap_or(true)
{
release_config.release = Some(false);
release_config.publish = Some(false);
}

Expand Down

0 comments on commit b35b462

Please sign in to comment.