[Fix]: Ignore hidden files during Astro IDE project export by pritt20 · Pull Request #1946 · astronomer/astro-cli

Choose a reason for hiding this comment

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

.astro is a dir rather than a file. Astro projects also include .gitignore and .dockerignore which we shouldn't be dropping.

Maybe we could do this a different way. The default Astro project .gitignore file excludes .git, .venv, and other files we shouldn't include, so perhaps we could use the go-git package to figure out which paths are allowed by .gitignore and only include those? (I've done something similar for an internal component of Astro IDE)