buildTrunkPackage: disable version checks by default (#616)

This commit is contained in:
Ivan Petkov 2024-05-19 00:06:59 +00:00 committed by GitHub
parent 54fe6fed44
commit 5b0b062ff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* **Breaking** `cargoAudit` no longer accepts `cargoExtraArgs` (since it does
not support the regular set of `cargo` flags like most cargo-commands do, it
does not make much sense to propagate those flags through)
* `buildTrunkPackage` now sets `env.TRUNK_SKIP_VERSION_CHECK = "true";` if not
specified
### Deprecations
* In the future, `crateNameFromCargoToml` will stop considering

View File

@ -4,4 +4,7 @@
<meta charset="utf-8" />
<title>Trunk App</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>

View File

@ -5,4 +5,7 @@
<title>Trunk App</title>
<link data-trunk rel="scss" href="./main.scss" />
</head>
<body>
<p>Hello world!</p>
</body>
</html>

View File

@ -5,4 +5,7 @@
<title>Trunk App</title>
<link data-trunk rel="scss" href="./main.scss" />
</head>
<body>
<p>Hello world!</p>
</body>
</html>

View File

@ -5,4 +5,7 @@
<title>Trunk App</title>
<link data-trunk rel="scss" href="./main.scss" />
</head>
<body>
<p>Hello world!</p>
</body>
</html>

View File

@ -63,6 +63,8 @@ mkCargoDerivation (args // {
doCheck = args.doCheck or false;
}));
env.TRUNK_SKIP_VERSION_CHECK = args.env.TRUNK_SKIP_VERSION_CHECK or "true";
# Force trunk to not download dependencies, but set the version with
# whatever tools actually make it into the builder's PATH
preConfigure = ''