1
1
mirror of https://github.com/tweag/nickel.git synced 2024-07-14 15:10:33 +03:00
Commit Graph

147 Commits

Author SHA1 Message Date
Yann Hamdaoui
7f9eb5ab2a
Update the release.sh script (#1952)
Update the release script by adding some missing `git add`, which were
lost when switching to using Topiary from crates.io.

Doing so, we also remove the `--dry-run` step before publishing: the
usual workflow is to perform the dry run test, and if it succeeds,
immediately do the actual publication. This isn't very useful: if the
dry run fails, we could have run the actual publication as well, which
would have fail in the same way, so this makes no difference. However,
if the dry run succeeds, we recompile each package one more time from
scratch, performing the exact same work for publication, which is
wasteful. At this point of the release script, we clearly intend to
release and we should just use `cargo publish` normally.
2024-06-11 14:12:45 +00:00
Erin van der Veen
3b00223521
use Topiary's published crates over git (#1919)
Now that Topiary is published and crates.io (and tree-sitter-nickel as
well), we move away from git revision and use proper public versions for
those. Doing so, we can also crap the special casing that was done
during release to disable those dependencies and we'll now be able to
release on crates.io a version with formatting enabled.

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2024-06-06 16:58:44 +00:00
Yann Hamdaoui
a16833ba52
Backport master/1.4.1 (#1781)
* Make base branch configurable in release script

Instead of hardcoding master as the base branch for a new release, put
it inside a shell variable than can be overriden (at least by modifying
the script) for patch releases, where it's more common to start off a
specific branch which isn't master (but the previous release + selected
bug fixes).

Additionally, add a missing phase before releasing to crates.io: get rid
of `lsp-harness` dependencies in the LSP.

* [release.sh] update to 1.4.1

* Update scripts/release.sh
2024-01-28 09:51:48 +00:00
Yann Hamdaoui
6015c8c0cb
Backport 1.4 release to master (#1755)
* Only update relevant deps in Cargo.lock

The release script needs to update Cargo.lock after having updated
Cargo.toml with the new version of various Nickel crates.

Indeed, we are running some checks via Nix, and Nix builds are sandboxed
without network access. This requires the Nix build to use `cargo
--frozen --offline`, which in turns require the Cargo.lock file to be
up-to-date or it will fail.

The previous version of the release script would do a simple `cargo
update`, which has the default of updating all dependencies. This commit
changes that to only udpate dependencies which we might have bumped.

* Add pause to commit release notes in release script

* Fix release script for LSP

The release script was missing a part: the removal of `lsp-harness` (a
local, unpublished util crates) from the nickel-lang-lsp package priori
to publication to crates.io.

Passing by, other small improvements and fixes are included as well.

* [release.sh] update to 1.4.0

* Specify 'do not commit' when updating release notes

* release guide: add missing step for lsp-harness removal
2024-01-11 09:15:16 +00:00
Yann Hamdaoui
1dd4deb9ec
Add a release script (#1748)
* Add a release script

First draft of a release script to automate most of the painful details
of releasing a new version of Nickel and associated crates.

* Update the releasing guide with new script

* Minor fixes to release script

* Change casing, use namerefs and other small improvements

* Make sure to checkout master before release process

* Make release.sh executable

* Shellcheck pass

* Various fixes and improvement

* More polishing of the release script

* Try sed-based Cargo.toml modifications

* WIP

* Fix cleanup actions after using it add

* Improve confirmation printing

* Fix undefined variable and cleanup actions

* Fix cleanup of ./Cargo.toml

* Fix jq invocation and circular reference warning

* Run cargo update during release script to fix Nix flake check

* Add cargo as requirement for release.sh

* Comment out effectful commands, fix Cargo.lock cleanup

* Add topiary cleaning to the release script

* [TODROP] disable nix flake check for rapid iteration

* [TODROP] Disable cleanup for debugging purpose

* Tentative fix of the remove Topiary dep step

* Avoid trailing commas when removing Topiary

* Improve output of removing topiary dependencies

* Fix issues with format removal step

* More fixing of the format removal step

* Put back actual git commands and cleanup

* Move release script to its own directory

* Make release script re-entrant once release branch exists

* Cd to the root git dir in the release script

* Disable some shellcheck warnings, remove trailing spaces, add missing git switch

* Run checks even if the release branch exists

* Describe Topiary removal in the releasing guide

* Update RELEASING.md

Co-authored-by: jneem <joeneeman@gmail.com>

* Cosmetic improvements to release script

---------

Co-authored-by: jneem <joeneeman@gmail.com>
2024-01-08 14:52:09 +00:00
Rok Garbas
dba0dbf90c
Switching from nixpkgs-mozilla overlay to rust-overlay 2022-01-17 12:53:18 +01:00
GitHub Actions
5642c455c8 Update stable Rust channel [ci skip] 2022-01-14 01:37:45 +00:00
GitHub Actions
4d740c1b52 Update nightly Rust channel [ci skip] 2022-01-13 02:04:15 +00:00
GitHub Actions
146b4ef02c Update nightly Rust channel [ci skip] 2022-01-12 02:03:34 +00:00
GitHub Actions
5bfaf63483 Update nightly Rust channel [ci skip] 2022-01-11 02:06:39 +00:00
GitHub Actions
037e906d1e Update nightly Rust channel [ci skip] 2022-01-10 02:04:21 +00:00
GitHub Actions
f7bfeb0f0e Update beta Rust channel [ci skip] 2022-01-09 01:54:09 +00:00
GitHub Actions
73a3363d41 Update nightly Rust channel [ci skip] 2022-01-08 02:06:26 +00:00
GitHub Actions
186ffdb0f7 Update nightly Rust channel [ci skip] 2022-01-07 02:06:33 +00:00
GitHub Actions
3c11c18359 Update nightly Rust channel [ci skip] 2022-01-06 02:07:16 +00:00
GitHub Actions
da9ab1c1c5 Update nightly Rust channel [ci skip] 2022-01-05 02:08:27 +00:00
GitHub Actions
f9e46b6b3b Update nightly Rust channel [ci skip] 2022-01-04 01:49:48 +00:00
GitHub Actions
a4ca433166 Update nightly Rust channel [ci skip] 2022-01-03 01:47:03 +00:00
GitHub Actions
be46e932c9 Update nightly Rust channel [ci skip] 2022-01-02 01:49:20 +00:00
GitHub Actions
c6a3164b3c Update nightly Rust channel [ci skip] 2022-01-01 01:48:12 +00:00
GitHub Actions
ed4ee5aba1 Update nightly Rust channel [ci skip] 2021-12-31 01:47:54 +00:00
GitHub Actions
9f01387140 Update nightly Rust channel [ci skip] 2021-12-30 01:45:29 +00:00
GitHub Actions
95390ef1aa Update nightly Rust channel [ci skip] 2021-12-29 01:45:51 +00:00
GitHub Actions
66ba798da1 Update nightly Rust channel [ci skip] 2021-12-27 01:49:11 +00:00
GitHub Actions
fb48c24cf3 Update nightly Rust channel [ci skip] 2021-12-26 01:51:21 +00:00
GitHub Actions
7c2a98bf8f Update nightly Rust channel [ci skip] 2021-12-25 01:48:31 +00:00
GitHub Actions
a8be15820f Update nightly Rust channel [ci skip] 2021-12-24 01:48:59 +00:00
GitHub Actions
ef3227e52b Update nightly Rust channel [ci skip] 2021-12-23 01:46:30 +00:00
GitHub Actions
9d176445aa Update nightly Rust channel [ci skip] 2021-12-22 01:47:40 +00:00
GitHub Actions
c46ae19293 Update nightly Rust channel [ci skip] 2021-12-21 01:49:06 +00:00
GitHub Actions
184139fddf Update nightly Rust channel [ci skip] 2021-12-20 01:47:27 +00:00
GitHub Actions
1947456c48 Update nightly Rust channel [ci skip] 2021-12-19 01:50:15 +00:00
GitHub Actions
8966eeddf1 Update nightly Rust channel [ci skip] 2021-12-18 01:49:20 +00:00
GitHub Actions
8d5d317bd2 Update nightly Rust channel [ci skip] 2021-12-17 01:48:51 +00:00
GitHub Actions
0204fa9439 Update nightly Rust channel [ci skip] 2021-12-16 01:42:43 +00:00
GitHub Actions
2d66a3cea5 Update nightly Rust channel [ci skip] 2021-12-15 01:46:11 +00:00
GitHub Actions
5383a564fb Update nightly Rust channel [ci skip] 2021-12-14 01:45:24 +00:00
GitHub Actions
76716c9a48 Update nightly Rust channel [ci skip] 2021-12-13 01:43:55 +00:00
GitHub Actions
b58dcf25be Update nightly Rust channel [ci skip] 2021-12-12 01:34:14 +00:00
GitHub Actions
c5a4ec8f7c Update nightly Rust channel [ci skip] 2021-12-10 01:46:52 +00:00
GitHub Actions
a5aad2480a Update nightly Rust channel [ci skip] 2021-12-09 01:42:38 +00:00
GitHub Actions
19192a460d Update nightly Rust channel [ci skip] 2021-12-08 01:46:30 +00:00
GitHub Actions
389bef1f66 Update nightly Rust channel [ci skip] 2021-12-07 01:44:53 +00:00
GitHub Actions
f11a62ee52 Update beta Rust channel [ci skip] 2021-12-06 01:31:27 +00:00
GitHub Actions
1cc4157fca Update nightly Rust channel [ci skip] 2021-12-04 01:45:08 +00:00
GitHub Actions
1e12ce0ff7 Update stable Rust channel [ci skip] 2021-12-03 01:30:57 +00:00
GitHub Actions
6af1f7d7f8 Update nightly Rust channel [ci skip] 2021-12-02 01:48:44 +00:00
GitHub Actions
2ddb1a0b3c Update beta Rust channel [ci skip] 2021-12-01 01:39:25 +00:00
GitHub Actions
e38ca00db3 Update nightly Rust channel [ci skip] 2021-11-30 01:46:00 +00:00
GitHub Actions
2de743b04f Update nightly Rust channel [ci skip] 2021-11-29 01:43:40 +00:00