-
Notifications
You must be signed in to change notification settings - Fork 123
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
When the "origin" remote points to a local directory that itself doesn't have an "origin" remote, SourceLink emits warning/error even though it has a fallback #629
Comments
Couldn't you set the |
The isolated repo's
|
Yes, that's what I mean. Keeping |
Cool, since it doesn't work in practice, is this a valid bug that you think will be fixed sometime soon? |
The indirection actually works based on the reported warning. |
Yep. This is the behavior described in dotnet/arcade#3236 (comment), which I suppose isn't working correctly after sourcelink hops over to the original local repo:
|
I see. OK. |
The scenario is that I want to run a build on an isolated, clean new source tree, without throwing away work with
git clean
on my dev repo. Thanks to git,git clone . <somewhere-else>
is inexpensive. But sourcelink makes the build fail if I don't have anorigin
remote on my dev repo.This warning is a problem because there's a strong standard in arcade-powered repos to have warning-as-error turned on.
I think that not having an
origin
is considered valid as a sourcelink scenario, based on dotnet/arcade#3236.(For this specific scenario, a worktree might work better. However, in some cases it's not good to have to manage
.git/worktrees/*
in the originating repo, and there are still some Git versions on our build machines that doesn't supportworktree
. This is related to a source-build scenario I can get into more if desired, but that seems off topic for now.)Here's how to repro (f225c7a at the time):
Here's the warning (as error): (
RepositoryDoesNotHaveSpecifiedRemote
)Binlog: sourcelink-no-origin-local.zip
Workaround: disable sourcelink when building this way. (
/p:EnableSourceControlManagerQueries=false /p:EnableSourceLink=false
)The text was updated successfully, but these errors were encountered: