Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: ignore.git directories in terraform modules#18255

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 2 commits intomainfromstevenmasley/consistent_modules
Jun 5, 2025

Conversation

Emyrk
Copy link
Member

.git directories were causing identical modules to have different hashes. This adds unecessary bloat to the database, and the .git directory is not needed for dynamic params

.git directories were causing identical modules to have differenthashes. This adds unecessary bloat to the database, and the .gitdirectory is not needed for dynamic params
Comment on lines 108 to 109
// .git directories are not needed in the archive and only cause
// hash differences for identical modules.
Copy link
Member

Choose a reason for hiding this comment

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

I usually prefer to put these kinds of comments outside of theif. Then the explanation actually precedes the condition, rather than explaining it after the fact.

Emyrk reacted with thumbs up emoji
if fileMode.IsDir() && d.Name() == ".git" {
// .git directories are not needed in the archive and only cause
// hash differences for identical modules.
return fs.SkipDir
Copy link
Member

Choose a reason for hiding this comment

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

TIL

Emyrk reacted with thumbs up emoji
@EmyrkEmyrk merged commit60595f3 intomainJun 5, 2025
34 checks passed
@EmyrkEmyrk deleted the stevenmasley/consistent_modules branchJune 5, 2025 17:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aslilacaslilacaslilac approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp