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

Allow to disregard the gitignore file during local preview file packing #166

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

tomasmik
Copy link
Contributor

This is a feature request from customers. Sometimes you want to not commit files to git, but still include them when running local preview. Using the new flag you can do just that.

Example with debugging prints:

➜  named_hooks git:(allow-to-ignore-gitignore) ✗ spacectl stack local-preview  --id=subdir
Packing local workspace...
built file: .terraformignore
built file: .gitignore
Ignoring file: modules/test
Ignoring file: modules/test/.spacelift
Ignoring file: modules/test/.spacelift/config.yml
Ignoring file: modules/test/examples
Ignoring file: modules/test/examples/simple-usage
Ignoring file: modules/test/examples/simple-usage/main.tf
Ignoring file: modules/test/main.tf
Ignoring file: modules/test/outputs.tf
Ignoring file: modules/test/variables.tf
Uploading local workspace...

^C
➜  named_hooks git:(allow-to-ignore-gitignore) ✗ spacectl stack local-preview  --id=subdir --disregard-gitignore
Packing local workspace...
built file: .terraformignore
Uploading local workspace...

@tomasmik tomasmik self-assigned this Jul 28, 2023
@tomasmik tomasmik marked this pull request as ready for review July 28, 2023 11:55
@tomasmik tomasmik changed the title Allow to disregard gitignore file Allow to disregard the gitignore file during local preview file packing Jul 28, 2023
@tomasmik tomasmik merged commit 9274791 into main Jul 31, 2023
9 checks passed
@tomasmik tomasmik deleted the allow-to-ignore-gitignore branch July 31, 2023 12:04
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