Skip to content

Commit 1535615

Browse files
Enabled repeatable package restores using lock files.
1 parent 59e9fad commit 1535615

11 files changed

Lines changed: 673 additions & 1 deletion

File tree

.github/workflows/BuildTestPackagePublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
dotnet-version: 8.0.x
2020

21-
- run: dotnet restore
21+
- run: dotnet restore --locked-mode
2222

2323
- shell: pwsh
2424
run: |

src/Antithesis.SDK.SourceGenerators/Antithesis.SDK.SourceGenerators.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<Nullable>enable</Nullable>
1010
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1111

12+
<!-- Repeatable Package restores -->
13+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
14+
1215
<!-- I cannot find this Property documented; however, I see it in some example projects. -->
1316
<DevelopmentDependency>true</DevelopmentDependency>
1417
<IncludeBuildOutput>false</IncludeBuildOutput>
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
".NETStandard,Version=v2.0": {
5+
"Microsoft.CodeAnalysis.CSharp": {
6+
"type": "Direct",
7+
"requested": "[4.0.1, )",
8+
"resolved": "4.0.1",
9+
"contentHash": "Q9RxxydPpUElj/x1/qykDTUGsRoKbJG8H5XUSeMGmMu54fBiuX1xyanom9caa1oQfh5JIW1BgLxobSaWs4WyHQ==",
10+
"dependencies": {
11+
"Microsoft.CodeAnalysis.Common": "[4.0.1]"
12+
}
13+
},
14+
"Microsoft.CodeAnalysis.NetAnalyzers": {
15+
"type": "Direct",
16+
"requested": "[9.0.0, )",
17+
"resolved": "9.0.0",
18+
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
19+
},
20+
"Nerdbank.GitVersioning": {
21+
"type": "Direct",
22+
"requested": "[3.7.115, )",
23+
"resolved": "3.7.115",
24+
"contentHash": "EpXamaAdRfG/BMxGgvZlTM0npRnkmXUjAj8OdNKd17t4oN+2nvjdv/KnFmzOOMDqvlwB49UCwtOHJrAQTfUBtQ=="
25+
},
26+
"NETStandard.Library": {
27+
"type": "Direct",
28+
"requested": "[2.0.3, )",
29+
"resolved": "2.0.3",
30+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
31+
"dependencies": {
32+
"Microsoft.NETCore.Platforms": "1.1.0"
33+
}
34+
},
35+
"Microsoft.CodeAnalysis.Analyzers": {
36+
"type": "Transitive",
37+
"resolved": "3.3.2",
38+
"contentHash": "7xt6zTlIEizUgEsYAIgm37EbdkiMmr6fP6J9pDoKEpiGM4pi32BCPGr/IczmSJI9Zzp0a6HOzpr9OvpMP+2veA=="
39+
},
40+
"Microsoft.CodeAnalysis.Common": {
41+
"type": "Transitive",
42+
"resolved": "4.0.1",
43+
"contentHash": "SMREwaVD5SzatlWhh9aahQAtSWdb63NcE//f+bQzgHSECU6xtDtaxk0kwV+asdFfr6HtW38UeO6jvqdfzudg3w==",
44+
"dependencies": {
45+
"Microsoft.CodeAnalysis.Analyzers": "3.3.2",
46+
"System.Collections.Immutable": "5.0.0",
47+
"System.Memory": "4.5.4",
48+
"System.Reflection.Metadata": "5.0.0",
49+
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
50+
"System.Text.Encoding.CodePages": "4.5.1",
51+
"System.Threading.Tasks.Extensions": "4.5.4"
52+
}
53+
},
54+
"Microsoft.NETCore.Platforms": {
55+
"type": "Transitive",
56+
"resolved": "1.1.0",
57+
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
58+
},
59+
"System.Buffers": {
60+
"type": "Transitive",
61+
"resolved": "4.5.1",
62+
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
63+
},
64+
"System.Collections.Immutable": {
65+
"type": "Transitive",
66+
"resolved": "5.0.0",
67+
"contentHash": "FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
68+
"dependencies": {
69+
"System.Memory": "4.5.4"
70+
}
71+
},
72+
"System.Memory": {
73+
"type": "Transitive",
74+
"resolved": "4.5.4",
75+
"contentHash": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==",
76+
"dependencies": {
77+
"System.Buffers": "4.5.1",
78+
"System.Numerics.Vectors": "4.4.0",
79+
"System.Runtime.CompilerServices.Unsafe": "4.5.3"
80+
}
81+
},
82+
"System.Numerics.Vectors": {
83+
"type": "Transitive",
84+
"resolved": "4.4.0",
85+
"contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ=="
86+
},
87+
"System.Reflection.Metadata": {
88+
"type": "Transitive",
89+
"resolved": "5.0.0",
90+
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
91+
"dependencies": {
92+
"System.Collections.Immutable": "5.0.0"
93+
}
94+
},
95+
"System.Runtime.CompilerServices.Unsafe": {
96+
"type": "Transitive",
97+
"resolved": "5.0.0",
98+
"contentHash": "ZD9TMpsmYJLrxbbmdvhwt9YEgG5WntEnZ/d1eH8JBX9LBp+Ju8BSBhUGbZMNVHHomWo2KVImJhTDl2hIgw/6MA=="
99+
},
100+
"System.Text.Encoding.CodePages": {
101+
"type": "Transitive",
102+
"resolved": "4.5.1",
103+
"contentHash": "4J2JQXbftjPMppIHJ7IC+VXQ9XfEagN92vZZNoG12i+zReYlim5dMoXFC1Zzg7tsnKDM7JPo5bYfFK4Jheq44w==",
104+
"dependencies": {
105+
"System.Runtime.CompilerServices.Unsafe": "4.5.2"
106+
}
107+
},
108+
"System.Threading.Tasks.Extensions": {
109+
"type": "Transitive",
110+
"resolved": "4.5.4",
111+
"contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
112+
"dependencies": {
113+
"System.Runtime.CompilerServices.Unsafe": "4.5.3"
114+
}
115+
}
116+
}
117+
}
118+
}

src/Antithesis.SDK/Antithesis.SDK.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<Nullable>enable</Nullable>
1616
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1717

18+
<!-- Repeatable Package restores -->
19+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
20+
1821
<!-- XML code documentation -->
1922
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2023

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
"net6.0": {
5+
"Microsoft.CodeAnalysis.NetAnalyzers": {
6+
"type": "Direct",
7+
"requested": "[9.0.0, )",
8+
"resolved": "9.0.0",
9+
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
10+
},
11+
"Nerdbank.GitVersioning": {
12+
"type": "Direct",
13+
"requested": "[3.7.115, )",
14+
"resolved": "3.7.115",
15+
"contentHash": "EpXamaAdRfG/BMxGgvZlTM0npRnkmXUjAj8OdNKd17t4oN+2nvjdv/KnFmzOOMDqvlwB49UCwtOHJrAQTfUBtQ=="
16+
},
17+
"antithesis.sdk.sourcegenerators": {
18+
"type": "Project"
19+
}
20+
}
21+
}
22+
}

tests/Antithesis.SDK.Benchmarks/Antithesis.SDK.Benchmarks.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
<IsPackable>false</IsPackable>
1313

14+
<!-- Repeatable Package restores -->
15+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
16+
1417
<!-- Required for the DisassemblyDiagnoser. -->
1518
<DebugType>pdbonly</DebugType>
1619
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)