Skip to content

fix: git ignore backward compatibility - #11011

Merged
TomChv merged 3 commits into
dagger:mainfrom
TomChv:feat/git-ignore-backward-compatibility
Sep 9, 2025
Merged

TomChv merged 3 commits into
dagger:mainfrom
TomChv:feat/git-ignore-backward-compatibility

Conversation

@TomChv

@TomChv TomChv commented Sep 8, 2025

Copy link
Copy Markdown
Member

As discussed with @jedevc, this PR ensure that module with version < v0.18.18 are not automatically loading .gitignore
so that we don't break compatibility.

I'm waiting for a clear response on https://discord.com/channels/707636530424053791/1413511775546118215/1414520241912021062 before applying any fixes on disabling gitignore for specific arguments

@TomChv
TomChv force-pushed the feat/git-ignore-backward-compatibility branch from 4466958 to ce42128 Compare September 8, 2025 16:23
Comment thread core/modulesource.go Outdated

// Ensure backward compatibility by not applying .gitignore rules if the engine version is less than v0.17.17
noGitIgnore := false
if semver.Compare(src.EngineVersion, "v0.18.17") < 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: make a little helper function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done in 33173b4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sorry, my bad, I meant something like supportsGitignore(semver string). Then the code can become a bit more readable.

Signed-off-by: Tom Chauveau <[email protected]>
@TomChv
TomChv requested a review from jedevc September 8, 2025 16:43
Signed-off-by: Tom Chauveau <[email protected]>
@TomChv
TomChv merged commit e3d1b4b into dagger:main Sep 9, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 9, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 10, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 10, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 10, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 10, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 11, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 11, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 11, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 11, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 12, 2025
jedevc added a commit to jedevc/dagger that referenced this pull request Sep 16, 2025
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