8000 quint 0.34.0 (evaluator v0.8.0) by bryan-minimal · Pull Request #1691 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/apalache/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# the release's sha256sum.txt and GitHub's asset digest:
# https://github.com/apalache-mc/apalache/releases/download/v0.62.4/apalache-0.62.4.tgz
#
# The version is the one quint pins (DEFAULT_APALACHE_VERSION_TAG in quint
# 0.33.1's dist/src/apalache.js), so `quint verify` can use this install.
# The version is the one quint pins: `apalache_pin` in packages/quint/build.ncl
# (quint's DEFAULT_APALACHE_VERSION_TAG), so `quint verify` can use this install.
let { subsetOf, Attrs, BuildSpec, Local, OutputBin, OutputData, Source, Test, .. } = import "minimal.ncl" in
let base = import "../base/build.ncl" in
let bash = import "../bash/build.ncl" in
Expand Down
17 changes: 11 additions & 6 deletions packages/quint/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ let node-lts = import "../node-lts/build.ncl" in
let rust = import "../rust/build.ncl" in
let toolchain = import "../toolchain/build.ncl" in

let version = "0.33.1" in
let version = "0.34.0" in
# The Rust evaluator release this quint version pins (QUINT_EVALUATOR_VERSION in
# dist/src/rust/binaryManager.js). build.sh fails if the two disagree, so a quint
# bump that moves it stops for a reviewer to bump this and the Source below.
let evaluator_version = "0.7.1" in
# quint's DEFAULT_APALACHE_VERSION_TAG must equal the packaged apalache's
# version; build.sh fails otherwise, so a bump of either stops for a reviewer.
let evaluator_version = "0.8.0" in
# The Apalache release this quint version pins (DEFAULT_APALACHE_VERSION_TAG in
# dist/src/apalache.js). build.sh fails unless it equals both this and the
# packaged apalache's version, so a bump of either stops for a reviewer.
# pkgmgr reads this binding (data/toolchain_constraints.toml) and only moves
# apalache to the version recorded here.
let apalache_pin = "0.62.4" in
let apalache_version = apalache.attrs.upstream_version in
{
name = "quint",
Expand All @@ -39,9 +43,9 @@ let apalache_version = apalache.attrs.upstream_version in
{ file = "package.json" } | Local,
{ file = "package-lock.json" } | Local,
{
# Upstream: https://github.com/quint-co/quint/archive/refs/tags/evaluator/v0.7.1.tar.gz
# Upstream: https://github.com/quint-co/quint/archive/refs/tags/evaluator/v0.8.0.tar.gz
url = "gs://minimal-staging-archives/quint-co/quint/evaluator-v%{evaluator_version}.tar.gz",
sha256 = "5d4cd64a69f5d8b61ed800ed14044899930029c7c14f160d0aedc212a1bf5432",
sha256 = "49006a83f32fab352ea72babcb8b09795d498c1154a67d27b159a8d8e92a996a",
# a GitHub archive under a renamed file; build.sh unpacks it
extract = false,
} | Source,
Expand Down Expand Up @@ -70,6 +74,7 @@ let apalache_version = apalache.attrs.upstream_version in
include version,
include evaluator_version,
include apalache_version,
include apalache_pin,
},
outputs = {
quint = { glob = "usr/bin/quint" } | OutputBin,
Expand Down
9 changes: 9 additions & 0 deletions packages/quint/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,19 @@ got=$(node -e "require('$mgr').getRustEvaluatorPath().then(p => console.log(requ
# this quint pins is redirected: an explicit --apalache-version for another
# keeps upstream's download.
AV="${MINIMAL_ARG_APALACHE_VERSION:?build.ncl forwards apalache_version}"
PIN="${MINIMAL_ARG_APALACHE_PIN:?build.ncl forwards apalache_pin}"
[ "$PIN" = "$AV" ] || {
echo "build.ncl's apalache_pin ($PIN) is not the packaged apalache ($AV)." >&2
echo "Fix: set apalache_pin in packages/quint/build.ncl to the Apalache quint pins," >&2
echo "and bump packages/apalache only to that same version." >&2
exit 1
}
Comment thread
bryan-minimal marked this conversation as resolved.
Resolved
dist="$prefix/node_modules/@informalsystems/quint/dist/src"
grep -qF "exports.DEFAULT_APALACHE_VERSION_TAG = '$AV';" "$dist/apalache.js" || {
echo "quint $V pins a different Apalache than the packaged $AV:" >&2
grep -F "DEFAULT_APALACHE_VERSION_TAG =" "$dist/apalache.js" >&2 || true
echo "Fix: set apalache_pin in packages/quint/build.ncl to the version above," >&2
echo "and bump packages/apalache to that same version." >&2
exit 1
}
asig="function apalacheDistDir(version) {"
Expand Down
8 changes: 4 additions & 4 deletions packages/quint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/quint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@informalsystems/quint": "0.33.1"
"@informalsystems/quint": "0.34.0"
}
}
Loading
0