Commit Graph

58 Commits

Author SHA1 Message Date
f6987ea139 Improve errors and cleanup
- Silence errors and do not create error annotations, fixes #144
- Implement cleanup for new sparse registry
- Do not clean `-sys` dependencies from `registry/src`, hopefully fixes  #150
2023-08-02 12:15:14 +02:00
b00faf5858 Add BuildJet Option (#154) 2023-08-01 09:01:11 +02:00
4fedae9bcf "update dependencies and rebuild" 2023-07-31 16:01:23 +02:00
be7377e68e fix src/config.ts: Remove sort_object (#152)
Fixed #151

I've tried running manually load and parse `Cargo.lock` and it runs fine
until `sort_object` is called.

Since `Cargo.lock` is auto-generated and usually sorted, I think there
is no need for sorting.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-27 08:55:56 +02:00
715970feed feat: Add hash of .cargo/config.toml to key (#149)
Also:
 - Add and use `sort_and_uniq` to make sure `globFile` resulting
   and `keyFiles` does not contain duplicates.
 - Only returns regular file in function `globFile`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-18 10:12:25 +02:00
3d4000164d feat: Rm workspace crates version before caching (#147)
Fixed #146

 - Set all `package.version` in `Cargo.toml` to `0.0.0`
 - Set `{build-, dev-, }dependencies` of workspace crates to `0.0.0`
 - Remove workspace crates from `Cargo.lock` before caching
 - Sort all toml objects before hashing them as json

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-06-18 09:29:44 +02:00
bb80d0f127 chore: use 8 character hash components (#143)
Use 8 character hash components to reduce the key length, making it
more readable.

Fixes #97
2023-05-19 20:30:37 +02:00
ad97570a01 fix: cache key stability (#142)
Ensure consistency of main and post configuration by storing and
restoring it from state, which in turn ensures cache key stability.

Also:
* Fixed some typos.
* Use core.error for logging errors.
* Fix inverted condition on cache-all-crates.

Reverts: #138
Fixes #140
2023-05-18 22:48:40 +02:00
865fd1f6db "update dependencies and changelog" 2023-05-13 12:16:26 +02:00
def0926359 feat: add option to cache all crates (#137)
Add cache-all-crates option which allows all crates to be cached instead
of just the dependency crates. This is useful when additional crates are
required for CI tooling.
2023-05-11 23:15:09 +02:00
827c240e23 fix: cache key dependency on installed packages (#138)
Add the installed packages to the environment element of the cache key
so that CI tooling is considered. This ensures that rust CI tooling is
cached correctly when changes occur. Prior to this a manual key change
or cache expiry would need to occur before CI tools were correctly
cached.
2023-05-11 23:12:12 +02:00
5e9fae966f fix: cache restore failures (#136)
Fix cache restore failures to to upstream bug.

Fixes #119
2023-05-11 09:01:27 +02:00
127a0e9568 "update dependencies and rebuild" 2023-05-02 22:03:29 +02:00
a1c019f71a update dependencies and rebuild 2023-02-24 10:58:39 +01:00
359a70e43a 2.2.0 2022-11-09 20:14:41 +01:00
e78327dd9e small code style improvements, README and CHANGELOG updates 2022-11-06 09:50:33 +01:00
3f2513fdf4 avoid calling cargo metadata on pre-cleanup 2022-11-03 11:26:22 +01:00
b8e72aae83 Added prefix-key cache-directories and cache-targets options (#85) 2022-10-18 23:05:42 +02:00
d4d463bd9b bump deps and rebuild 2022-10-14 21:54:25 +02:00
0d72e5f9a0 revert explicit dir close 2022-09-04 13:22:47 +02:00
be4be3720d explicitly close dir handles, add more logging, cleanups 2022-09-04 13:10:36 +02:00
b8d4fa4eaf update dependencies, use watto as example 2022-09-04 12:03:43 +02:00
5733786579 rebuild 2022-07-16 12:42:15 +02:00
0497f9301f improve registry cleanpu 2022-07-09 19:20:02 +02:00
7b8626742a update registry cleaning 2022-07-09 18:51:34 +02:00
07a2ee71bc lol, dependency check was reversed 2022-07-09 17:37:48 +02:00
86bae2494f clean nested and arbitrary profile and target directories 2022-07-09 16:14:38 +02:00
827b33fbd0 pretty printing and fix workspace package retrieval 2022-07-09 15:51:45 +02:00
36af5cb1ae fix pretty printing and selftest 2022-07-09 15:39:43 +02:00
11be10514b fix pretty printing 2022-07-09 15:25:09 +02:00
e1846a926d rebuild 2022-07-09 15:21:43 +02:00
81d053bdb0 update dependencies and rebuild 2022-06-26 12:35:07 +02:00
74e8e24b6d Update dependencies, clean both debug and release targets 2022-04-08 17:25:03 +02:00
3bb3a9a087 update deps and rebuild 2021-12-24 08:55:35 +01:00
d127014599 update dependencies 2021-09-28 17:49:43 +02:00
c5ed9ba6b7 update dependencies and rebuild 2021-06-28 23:21:42 +02:00
842ef286ff update dependencies and rebuild 2021-05-30 11:05:48 +02:00
ebd95456c3 rebuild 2021-05-19 10:11:17 +02:00
ce325b6065 rebuild 2021-03-19 17:10:47 +01:00
b495963495 Add a selftest and support for .cargo/bin 2021-02-16 09:06:04 +01:00
83aad8d470 rebuild 2021-01-28 18:42:00 +01:00
d7bda0e369 update dependencies 2021-01-10 09:30:57 +01:00
08d3994b7a rebuild 2020-12-07 23:58:13 +01:00
da5df52d2f update deps 2020-11-21 12:11:25 +01:00
0eea7b85d4 update dependencies and rebuild 2020-11-07 10:22:23 +01:00
645c6972a6 update to npm v7 lockfile 2020-10-21 09:43:08 +02:00
6ccf2463db deal with uncaught exceptions 2020-10-21 09:32:47 +02:00
9cc357c650 update dependencies 2020-10-21 09:00:54 +02:00
292ef23e77 avoid error when saving without git dependencies 2020-10-13 13:52:55 +02:00
5f6034beb8 improve log output 2020-10-06 12:57:42 +02:00