Skip to content

[WIP] escape .git for tarball cache #12806

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

[WIP] escape .git for tarball cache #12806

wants to merge 1 commit into from

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Mar 31, 2025

Fix for #10575

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Mic92 Mic92 requested a review from edolstra as a code owner March 31, 2025 08:21
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Mar 31, 2025
return 0;
}

std::string escapeDotGit(const std::string& filename) {
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: We should only do this for the tarball cache.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also we need to bump the version of this cache as older version might otherwise be confused.

@@ -57,6 +58,81 @@ bool operator == (const git_oid & oid1, const git_oid & oid2)
return git_oid_equal(&oid1, &oid2);
}

namespace {

int matchesDotPlusGit(const std::string& str) {
Copy link
Member Author

Choose a reason for hiding this comment

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

We need a bunch of tests here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetching Networking with the outside (non-Nix) world, input locking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant