-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Feature request: atmos vendor clean
#701
Comments
Potential problem to consider: What about mixins which are vendored (as directories, not single files) into non-vendored directories? Maybe #488 would be required to make that safe. For example: I have something like this vendor configuration and
|
Makes sense as a feature. We will be working more on vendoring to improve it in the coming months. Will take this under consideration. |
That's really tricky, without a state file (e.g. like a vendor.yaml.lock). I think we can handle the simple case, but supporting the lock file would be a larger scope. |
Yes, I also came to that conclusion: Without a lock file my expectations couldn't really be met. Feel free to close this feature request if out of scope. A lock file would have other advantages though like potentially speeding up vendoring by not re-downloading stuff |
One other idea is to ignore any file that is in git. So it will delete any file not committed in the destination folder. Would that work? |
Hmmm... not sure. Maybe for others, probably not in my use case since we have |
I'll create another task internally, to introduce a vendor.yaml.lock file |
Describe the Feature
We are using the
vendor
feature a lot and especially while developing it is sometimes necessary to purge a vendored directories.In our case it boils down to a
rm -rf components/terraform
and we could wrap it in a custom command. But it is a dangerous command to script due to the required-f
flag (required for the.git
directory within.terraform/modules
) and thus it would be nice if there was a "safer" command to give to our novice colleagues.It would also be useful if flags like
--component
and the like were supported as well.Expected Behavior
An official, safe way to remove vendored stuff exists.
Use Case
A safe way to remove vendored directories for novice users.
Describe Ideal Solution
Calling
atmos vendor clean
will remove everything added byatmos vendor pull
. If directories were vendored, they should be deleted recursively with everything included, including non-vendored files and directories.Alternatives Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: