-
-
Notifications
You must be signed in to change notification settings - Fork 138
chore(deps): update dependency tunit.aspire to 1.7* #6901
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |||||
| </PropertyGroup> | ||||||
|
|
||||||
| <ItemGroup> | ||||||
| <PackageReference Include="TUnit.Aspire" Version="1.6*" /> | ||||||
| <PackageReference Include="TUnit.Aspire" Version="1.7*" /> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- changed paths and diff ---'
git diff --stat 5908e023791b393cad9e66eaec2b6c24ca588074 3c44d2b1313be9481f6f6ce698ae1c685bf5430f -- src/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj src/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj
git diff --unified=20 5908e023791b393cad9e66eaec2b6c24ca588074 3c44d2b1313be9481f6f6ce698ae1c685bf5430f -- src/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj src/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj
printf '%s\n' '--- current files ---'
cat -n src/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj
cat -n src/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj
printf '%s\n' '--- version and restore-related declarations ---'
rg -n --hidden -g '!bin' -g '!obj' -g '!node_modules' 'NuGet|PackageReference Include="TUnit\.Aspire"|TUnit\.Aspire.*Version|global\.json|packages\.lock\.json|Restore' . | head -240
printf '%s\n' '--- relevant template files ---'
git ls-files 'src/TUnit.Templates' | rg '(^|/)(.*(test|Test|csproj|props|targets|json|md))$' | head -240Repository: thomhurst/TUnit Length of output: 31734 🤖 get_repo_knowledge executed:
Length of output: 46399 🌐 Web query:
💡 Result: 🏁 Script executed: #!/bin/bash
set -e
python3 - <<'PY'
from urllib.request import urlopen
urls = [
"https://raw.githubusercontent.com/NuGet/NuGet.Client/dev/src/NuGet.Core/NuGet.Versioning/FloatRange.cs",
"https://raw.githubusercontent.com/NuGet/NuGet.Client/7.9.0/src/NuGet.Core/NuGet.Versioning/FloatRange.cs",
]
for url in urls:
print(f"--- {url} ---")
try:
text = urlopen(url, timeout=15).read().decode()
except Exception as exc:
print(type(exc).__name__ + ": " + str(exc))
continue
lines = text.splitlines()
for i, line in enumerate(lines, 1):
if "TryParse" in line or "FloatPart" in line or "Floating" in line or "lower" in line.lower() or "minimum" in line.lower():
start = max(1, i - 3)
end = min(len(lines), i + 12)
print("\n".join(f"{n}: {lines[n-1]}" for n in range(start, end + 1)))
PY
printf '%s\n' '--- SDK pin and package declarations ---'
cat -n global.json | head -80
cat -n Directory.Packages.props | sed -n '60,90p'Repository: thomhurst/TUnit Length of output: 3390 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- version files ---'
cat -n global.json | head -80
cat -n Directory.Packages.props | sed -n '1,100p'
cat -n Directory.Build.props | sed -n '1,180p'
printf '%s\n' '--- template build props ---'
cat -n src/TUnit.Templates/content/Directory.Build.props | sed -n '1,100p'
printf '%s\n' '--- pipeline/template package references ---'
cat -n tools/TUnit.Pipeline/Modules/TestTemplatePackageModule.cs | sed -n '1,180p'
rg -n --hidden -g '!bin' -g '!obj' -g '!node_modules' '1\.69|1\.70|1\.7\*|1\.6\*|PackageVersion|VersionPrefix|TUnitPackageVersion' . | head -240
printf '%s\n' '--- recent commit summary for version-related changes ---'
git log --oneline -12 -- src/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj src/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj Directory.Packages.props tools/TUnit.Pipeline/Modules/GenerateVersionModule.csRepository: thomhurst/TUnit Length of output: 45665 Use NuGet parses Suggested fix- <PackageReference Include="TUnit.Aspire" Version="1.7*" />
+ <PackageReference Include="TUnit.Aspire" Version="1.*" />Apply this change in both affected project files. 📝 Committable suggestion
Suggested change
📍 Affects 2 files
🤖 Prompt for AI Agents |
||||||
| </ItemGroup> | ||||||
|
|
||||||
| <ItemGroup> | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="TUnit.Aspire" Version="1.6*" /> | ||
| <PackageReference Include="TUnit.Aspire" Version="1.7*" /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When either Aspire template is scaffolded, this literal reference is emitted into the consumer project, so changing it to
1.7*narrows future restores and reintroduces dependency-update churn.src/TUnit.Templates/content/Directory.Build.props:3-10explicitly requires all TUnit-family references in template project files to useVersion="1.*"so newly scaffolded projects track the latest v1 release; update both changed Aspire references to that range instead of advancing the prefix.Useful? React with 👍 / 👎.