-
Notifications
You must be signed in to change notification settings - Fork 205
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
[Issue] azd init should ignore some files #4142
Comments
What about Here's an alternative:
A strategy like this would enable folks to start a codespace from the azd-template branch to use and own the template, or from |
As a template author I do not want to manage two different branches - too much overhead. |
We can only control how We know if developers manually acquire the template that the azd ignore file will not be processed. |
@rajeshkamal5050 - This is a different issue. The ones you referenced are "ignore files during packaging". This one is for "ignore files during init". The description of this issue is still a good reference for the desire there. |
When a user runs
azd init
it copies all files from the repo. Sometimes we don't want that.The template author may want a CONTRIBUTING.md file in the repo or a file in the .github folder for the template authoring experience. But doesn't want the user to have that file when they are using the template.
Examples of files that we don't want to be copied when initialization a template, but should be in the repo.
https://github.com/Azure-Samples/agent-openai-python-prompty/blob/main/CONTRIBUTING.md
https://github.com/Azure-Samples/agent-openai-python-prompty/blob/main/CHANGELOG.md
https://github.com/Azure-Samples/agent-openai-python-prompty/blob/main/.github/CODE_OF_CONDUCT.md
https://github.com/Azure-Samples/agent-openai-python-prompty/blob/main/.github/workflows/azure-dev-validation.yaml
Suggestion:
Add a
.azdignore
file to the root of the repo that contains files/paths that azd should ignore during the init.The text was updated successfully, but these errors were encountered: