File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88363,7 +88363,7 @@ class CacheConfig {
88363
88363
try {
88364
88364
const content = await promises_default().readFile(cargo_lock, { encoding: "utf8" });
88365
88365
const parsed = parse(content);
88366
- if (parsed.version !== 3 || !("package" in parsed)) {
88366
+ if (( parsed.version !== 3 && parsed.version !== 4) || !("package" in parsed)) {
88367
88367
// Fallback to caching them as regular file since this action
88368
88368
// can only handle Cargo.lock format version 3
88369
88369
lib_core.warning('Unsupported Cargo.lock format, fallback to caching entire file');
Original file line number Diff line number Diff line change @@ -88363,7 +88363,7 @@ class CacheConfig {
88363
88363
try {
88364
88364
const content = await promises_default().readFile(cargo_lock, { encoding: "utf8" });
88365
88365
const parsed = parse(content);
88366
- if (parsed.version !== 3 || !("package" in parsed)) {
88366
+ if (( parsed.version !== 3 && parsed.version !== 4) || !("package" in parsed)) {
88367
88367
// Fallback to caching them as regular file since this action
88368
88368
// can only handle Cargo.lock format version 3
88369
88369
core.warning('Unsupported Cargo.lock format, fallback to caching entire file');
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class CacheConfig {
197
197
const content = await fs_promises . readFile ( cargo_lock , { encoding : "utf8" } ) ;
198
198
const parsed = toml . parse ( content ) ;
199
199
200
- if ( parsed . version !== 3 || ! ( "package" in parsed ) ) {
200
+ if ( ( parsed . version !== 3 && parsed . version !== 4 ) || ! ( "package" in parsed ) ) {
201
201
// Fallback to caching them as regular file since this action
202
202
// can only handle Cargo.lock format version 3
203
203
core . warning ( 'Unsupported Cargo.lock format, fallback to caching entire file' ) ;
You can’t perform that action at this time.
0 commit comments