Skip to content

Commit 463a240

Browse files
authored
Tighten package sources in C# smoketests (#133)
## Description of Changes Same as #1735 but for this repo. ## API - [ ] This is an API breaking change to the SDK *If the API is breaking, please state below what will break* ## Requires SpacetimeDB PRs *List any PRs here that are required for this SDK change to work*
1 parent cec6fb8 commit 463a240

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

sdks/csharp/.github/workflows/dotnet.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,18 @@ jobs:
4444
<packageSources>
4545
<!-- Local NuGet repositories -->
4646
<add key="Local SpacetimeDB.BSATN.Runtime" value="../SpacetimeDB/crates/bindings-csharp/BSATN.Runtime/bin/Release" />
47-
<!-- Official NuGet.org server -->
48-
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
4947
</packageSources>
48+
<packageSourceMapping>
49+
<!-- Ensure that SpacetimeDB.BSATN.Runtime is used from the local folder. -->
50+
<!-- Otherwise we risk an outdated version being quietly pulled from NuGet for testing. -->
51+
<packageSource key="Local SpacetimeDB.BSATN.Runtime">
52+
<package pattern="SpacetimeDB.BSATN.Runtime" />
53+
</packageSource>
54+
<!-- Fallback for other packages (e.g. test deps). -->
55+
<packageSource key="nuget.org">
56+
<package pattern="*" />
57+
</packageSource>
58+
</packageSourceMapping>
5059
</configuration>
5160
EOF
5261
- name: Restore dependencies

0 commit comments

Comments
 (0)