Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep fails when target folder does not exist #7

Closed
BD103 opened this issue Sep 10, 2024 · 0 comments
Closed

Sweep fails when target folder does not exist #7

BD103 opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BD103
Copy link
Owner

BD103 commented Sep 10, 2024

Found in this run. We should detect if target does not exist, and if so just return early.

Post job cleanup.
Post job cleanup.
Restoring timestamp from state.
Using timestamp: {"secs_since_epoch":1725971506,"nanos_since_epoch":612882228}.
Sweeping unused build files.
/home/runner/.cargo/bin/cargo-sweep sweep --file
Error: Failed to clean "/home/runner/work/bevy-website/bevy-website/target" as it does not exist.
/home/runner/work/_actions/BD103/cargo-sweep/v1/dist/post/index.js:3376
                error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
                        ^

Error: The process '/home/runner/.cargo/bin/cargo-sweep' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/BD103/cargo-sweep/v1/dist/post/index.js:3376:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/BD103/cargo-sweep/v1/dist/post/index.js:3359:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/BD103/cargo-sweep/v1/dist/post/index.js:3253:27)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:338:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant