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

Clean up generated files from source directory #44

Merged
merged 10 commits into from
Jul 21, 2023
Merged

Clean up generated files from source directory #44

merged 10 commits into from
Jul 21, 2023

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Jul 20, 2023

This PR goes some way to support the old orderly_develop_status and orderly_develop_clean workflow from before. There are differences though as we no longer have any expectation of a full file list from reading the orderly metadata.

The approach here then is driven from the files we see, which we then try and classify - we can score things as the orderly.R file, resources, global resources, dependencies, or artefacts. The last three types need deleting when we clean up.

@kgaythorpe made the excellent suggestion of encouraging people to use .gitignore, and I remembered that libgit2 has the ability to tell if a file is gitignored, so with very recent gert we can use this to find files that the user probably wants gone: r-lib/gert#204

There are some fixes here to metadata handling that were required to make this work.

I'd like some feedback on if the names are right, but at the same time we have a big rename coming up soon. I've indicated in the doc that the status type is unstable, andI imagine that we'll put a format method on that at some point

@richfitz richfitz marked this pull request as ready for review July 20, 2023 17:43
Copy link
Contributor

@r-ash r-ash left a comment

Choose a reason for hiding this comment

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

This looks great to me, using gitignore is an excellent idea

@richfitz richfitz merged commit d81b5bd into main Jul 21, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants