-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Git config setting safe.bareRepository=explicit
can break dependency resolution
#8068
Comments
It seems it was an update in sourcetree that caused the issue : https://jira.atlassian.com/browse/SRCTREEWIN-14483 |
But it's also default behaviour now in git : git/git@e35f202 |
Sourcetree was eager to deliver this update, but is not the cause of the issue. |
+1.
|
That may be true, it was unexpected and it did cause quite some confusion for us to track down the cause. But it looks like this will roll out by default in future versions of git. |
No. Git added |
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
A recent software update from Sourcetree added or modified the
safe.bareRepository=explicit
configuration option to git.This interfers with the package resolution, it seems to only involve our private packages on github.
The packages refuse to resolve and we get error like saying it cannot fetch revision (see below)
Expected behavior
Actual behavior
Steps to reproduce
A Package with a dependency to a private github repo
In the CLI
Swift Package Manager version/commit hash
Swift Package Manager - Swift 6.0.0-dev
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: