The line that sets the manifestPath when using a git remote should be pulled outside of this if branch otherwise the manifestPath is not correctly set when using a cached git clone:
| if(!existsSync(localPath)){ |
| mkdirSync(localPath,{recursive: true}); |
| |
| constargs=['clone']; |
| if(gitReference==='HEAD'){ |
| args.push('--depth','1'); |
| } |
| |
| args.push(project.gitRemote,localPath); |
| exec('git',args); |
| |
| if(gitReference!=='HEAD'){ |
| exec('git',['checkout',gitReference],{cwd: localPath}); |
| } |
| |
| // Append Cargo.toml to the path |
| manifestPath=join(localPath,defaultManifestPath); |
| } |
The line that sets the
manifestPathwhen using a git remote should be pulled outside of this if branch otherwise themanifestPathis not correctly set when using a cached git clone:cargo-lambda-cdk/src/cargo.ts
Lines 53 to 70 in 91d5dd6