Skip to content

Add/update baseline .cfignore files #390

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add/update baseline .cfignore files #390

wants to merge 2 commits into from

Conversation

TimHess
Copy link
Member

@TimHess TimHess commented May 30, 2025

fixes #350

Properties

# files specific this sample
.tanzuignore
Copy link
Member

Choose a reason for hiding this comment

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

Should this be moved to the "Common files that don't need to be pushed" section?

Copy link
Member

Choose a reason for hiding this comment

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

Can you also update the .tanzuignore file in the Configuration sample directory, then replicate it to the connector samples?

There is also a .dockerignore file in the Configuration samples directory. Does it serve any purpose, or should it be deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure what to do with .tanzuignore, so I wanted to just generally leave it as-is and consider it a sample-specific file for now since we have no plans to add more of them.

I don't see any value in the .dockerignore file, I'll remove it

Copy link
Member

Choose a reason for hiding this comment

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

Based on recent developments, I recommend deleting the file and no longer referencing it.

# DotNet
bin
obj
publish
Copy link
Member

Choose a reason for hiding this comment

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

Upon reviewing relevant entries in https://github.com/github/gitignore/blob/main/VisualStudio.gitignore, I noticed some differences, such as publish/, which indicates that it should match directories only. Does the .cfignore format also support that?

Copy link
Member Author

Choose a reason for hiding this comment

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

The only file I saw in in that directory in our samples was launchSettings.json. I suppose the file name should be here rather than the directory

Copy link
Member

Choose a reason for hiding this comment

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

That looks like a response to another comment :)

# Common files that don't need to be pushed
config
*.http
manifest-windows.yml
Copy link
Member

Choose a reason for hiding this comment

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

This could be manifest*.yml, in case we add more variations in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

It could be, but we could also change it if/when that happens

Copy link
Member

Choose a reason for hiding this comment

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

My concern is that it probably never happens, as we typically don't look at these files. That leads to including unintended files, which succeeds, so we won't be notified. Unless there's a potential reason to include such files that I can't think of, I prefer to widen the match.

@TimHess TimHess requested a review from bart-vmware June 2, 2025 21:33
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.

Create a universal .cfignore file in all sample directories
2 participants