Skip to content

scripts/release.sh does not bump Cargo.toml on macOS (BSD sed) #64

Closed

Description

@IlanReshet

scripts/release.sh 0.1.0-rc.3 on macOS printed "Prepared 0.1.0-rc.2 -> 0.1.0-rc.3. Changed: Cargo.toml, Cargo.lock, CHANGELOG.md", but only CHANGELOG.md changed. Cargo.toml stayed at 0.1.0-rc.2.

Cause: line 22 uses the GNU-only 0,/re/ address (sed -i.bak "0,/^version = .../s//.../"). BSD sed on macOS doesn't support it, and the error is swallowed, so the script reports success.

Expected: the bump works on macOS and Linux (e.g. use awk or perl for the first version = line), and the script fails loudly if Cargo.toml didn't change.

Worked around for v0.1.0-rc.3 by bumping by hand in #63.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions