Skip to content
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

Fix SourceLink #62

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Fix SourceLink #62

merged 2 commits into from
Feb 29, 2024

Conversation

Smaug123
Copy link
Contributor

@Smaug123 Smaug123 commented Feb 27, 2024

The MapSourceRoot target here is ancient. This all works out of the box now. Verified using https://github.com/Smaug123/nuget-metadata that the source mappings are correct when the GITHUB_ACTION env var is set (we get links like /_//ApiSurface/ApiSurface.fs to https://raw.githubusercontent.com/G-Research/ApiSurface/c1e01a8f03ffe4b0eaae137baf981ae05aa77745//ApiSurface/ApiSurface.fs), and when the env var is not set (i.e. locally, when we get proper links relative to the source files on your actual computer).

See https://docs.github.com/en/actions/learn-github-actions/variables for verification that GITHUB_ACTION is set.

Fixes #1 .

@Smaug123 Smaug123 requested review from a team as code owners February 27, 2024 21:51
@Smaug123
Copy link
Contributor Author

(I'd like to use this one to check #64 , so I won't merge it yet.)

@Smaug123 Smaug123 merged commit 88f8526 into main Feb 29, 2024
23 checks passed
@Smaug123 Smaug123 deleted the fix-sourcelink branch February 29, 2024 21:04
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.

Deterministic builds and SourceLink
2 participants