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

removes forc clean cargo toml error #945

Merged
merged 18 commits into from
Mar 16, 2022

Conversation

eureka-cpu
Copy link
Contributor

@eureka-cpu eureka-cpu commented Mar 15, 2022

Closes #932

I've updated the find_manifest_dir function to be dynamic, so that we can find either a Forc.toml or Cargo.toml, then used that function to check for a Cargo.toml and if one is not found, emit a non-error warning message that without one cargo clean will be bypassed.

@eureka-cpu eureka-cpu added bug Something isn't working forc labels Mar 15, 2022
@eureka-cpu eureka-cpu self-assigned this Mar 15, 2022
Copy link
Contributor

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should definitely be changed! Instead of removing (which would be better than simply commenting out), cargo clean should not be ran at all if Cargo.toml doesn't exist. The reason being that there might be other ways cargo clean can fail, and we shouldn't silence those errors.

@eureka-cpu
Copy link
Contributor Author

eureka-cpu commented Mar 15, 2022

This should definitely be changed! Instead of removing (which would be better than simply commenting out), cargo clean should not be ran at all if Cargo.toml doesn't exist. The reason being that there might be other ways cargo clean can fail, and we shouldn't silence those errors.

Thank you for clarifying! I'll get on this tomorrow morning. (commented out since I wasn't sure btw)

@adlerjohn adlerjohn marked this pull request as draft March 15, 2022 02:26
@eureka-cpu eureka-cpu requested a review from adlerjohn March 15, 2022 18:12
@eureka-cpu eureka-cpu marked this pull request as ready for review March 15, 2022 18:36
sway-utils/src/helpers.rs Outdated Show resolved Hide resolved
@eureka-cpu eureka-cpu requested review from adlerjohn and sezna March 16, 2022 18:10
Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last change, otherwise looking good!

forc/src/ops/forc_clean.rs Outdated Show resolved Hide resolved
@eureka-cpu eureka-cpu merged commit da11f37 into master Mar 16, 2022
@eureka-cpu eureka-cpu deleted the eureka-cpu/forc-clean-cargo-toml-err branch March 16, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forc
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Error running forc clean with no Cargo manifest
3 participants