From 9d939e788581eeba3361e607ac8fbc3adfe70637 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 6 Mar 2023 11:12:12 -0800 Subject: [PATCH] Release v0.5.0 (#305) --- CONTRIBUTING.md | 14 +++++++++++--- Cargo.lock | 2 +- Cargo.toml | 2 +- flake.nix | 2 +- tests/fixtures/linux/linux.json | 2 +- tests/fixtures/linux/steam-deck.json | 2 +- tests/fixtures/macos/macos.json | 2 +- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a61e9a364..117439065 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ surprises. # What kinds of contributions are needed? -Riff can benefit from all kinds of contributions: +`nix-installer` can benefit from all kinds of contributions: * Bug reports * Code improvements @@ -27,7 +27,7 @@ Riff can benefit from all kinds of contributions: * Graphical/visual asset improvement * Kind words or recommendation on your own site, repo, stream, or social media account -* Onboarding others to using Riff +* Onboarding others to using `nix-installer` # What are the expectations you can have of the maintainers? @@ -362,8 +362,16 @@ If you are working on the `action.yml` There is an integration test for `action. To cut a release: +* Ensure the `flake.lock`, `Cargo.lock`, and Rust dependencies are up-to-date with the following: + + `nix flake update --commit-lock-file` + + `cargo update` (and commit) + + `cargo outdated` * Create a release branch from `main` (`git checkout -b release-v0.0.1`) * Remove the `-unreleased` from the `version` field in `Cargo.toml` and `flake.nix` +* Ensure the VM / container tests still pass with the following: + + `nix flake check -L` + + `nix build .#hydraJobs.container-test.all.x86_64-linux.all -L` + + `nix build .#hydraJobs.vm-test.all.x86_64-linux.all -L` * Push the branch, create a PR ("Release v0.0.1") * Once the PR tests pass and it has been reviewed, merge it * `git pull` on the `main` branch @@ -376,7 +384,7 @@ To cut a release: * Undraft the release * Once you are certain the release is good, `cargo publish` it + **Warning:** While you can re-release Github releases, it is not possible to do the same on `crates.io` -* Create a PR bumping the version up one minor in the `Cargo.toml` and `flake.nix`, adding `-unreleased` at the end (`v0.0.2-unreleased`) +* Create a PR bumping the version up one minor in the `Cargo.toml`, `flake.nix`, and fixture JSON files, adding `-unreleased` at the end (`v0.0.2-unreleased`) # Who maintains `nix-installer` and why? diff --git a/Cargo.lock b/Cargo.lock index 841f37b46..81a972ca4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -944,7 +944,7 @@ dependencies = [ [[package]] name = "nix-installer" -version = "0.4.0" +version = "0.5.0" dependencies = [ "async-trait", "atty", diff --git a/Cargo.toml b/Cargo.toml index 38df9a4ad..e8fb62f8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "nix-installer" description = "The Determinate Nix Installer" -version = "0.4.0" +version = "0.5.0" edition = "2021" resolver = "2" license = "LGPL-2.1" diff --git a/flake.nix b/flake.nix index df4ef81b6..268c0d2c9 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,7 @@ }; sharedAttrs = { pname = "nix-installer"; - version = "0.4.0"; + version = "0.5.0"; src = builtins.path { name = "nix-installer-source"; path = self; diff --git a/tests/fixtures/linux/linux.json b/tests/fixtures/linux/linux.json index f8b864f71..c54954f2f 100644 --- a/tests/fixtures/linux/linux.json +++ b/tests/fixtures/linux/linux.json @@ -1,5 +1,5 @@ { - "version": "0.4.0", + "version": "0.5.0", "actions": [ { "action": { diff --git a/tests/fixtures/linux/steam-deck.json b/tests/fixtures/linux/steam-deck.json index ddf5219a2..716ec197b 100644 --- a/tests/fixtures/linux/steam-deck.json +++ b/tests/fixtures/linux/steam-deck.json @@ -1,5 +1,5 @@ { - "version": "0.4.0", + "version": "0.5.0", "actions": [ { "action": { diff --git a/tests/fixtures/macos/macos.json b/tests/fixtures/macos/macos.json index 7a3f2c1ff..b313bdbbc 100644 --- a/tests/fixtures/macos/macos.json +++ b/tests/fixtures/macos/macos.json @@ -1,5 +1,5 @@ { - "version": "0.4.0", + "version": "0.5.0", "actions": [ { "action": {