Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
c045805
feat: dotnet support for prek
Mar 12, 2026
6e6f137
refactor: split out the installer
Mar 12, 2026
065213c
fix: use colon as version separator for dotnet dependencies
Mar 12, 2026
11d0436
docs: update dotnet version examples to include net10.0
Mar 12, 2026
f5d84a7
test: fix dotnet tests to use colon separator and net10.0
Mar 12, 2026
10532ef
test: add .NET SDK version filter for snapshot tests
Mar 12, 2026
4eb26df
docs: update dotnet language documentation to show supported status
Mar 12, 2026
f18c0c4
ci: add dotnet to language test matrix
Mar 12, 2026
2227b24
test: adds some more test coverage
Mar 12, 2026
d9f9c3b
test: flush stderr
Mar 12, 2026
a134bf9
test: replace PATH removal with binary shadowing
Mar 12, 2026
2726670
test: more cov
Mar 13, 2026
577db67
test: test through LanguageRequest
Mar 13, 2026
9544324
test: Add check_health and error handling tests
Mar 13, 2026
4a920ea
test: Add dotnet LTS download test when no system dotnet
Mar 13, 2026
56b6867
test: add dotnet version mismatch and missing executable tests
Mar 13, 2026
8be53c0
refactor: extract channel argument logic to helper functions
Mar 13, 2026
cea4773
refactor: extract dotnet system path validation to separate method
Mar 13, 2026
4895d32
refactor: Use global REQWEST_CLIENT, check response status
snus-kin Mar 13, 2026
66329e7
fix: use globa reqwest client for windows downloads & error handling
snus-kin Mar 15, 2026
d1e2061
feat: canonicalise the dotnet path if it's symlinked
snus-kin Mar 15, 2026
64ffcc3
docs: remove version specifier documenation that was wrong
snus-kin Mar 15, 2026
68f35c4
fix: remove unused snapshot filter
snus-kin Mar 15, 2026
1b44003
fix: clean unused imports
snus-kin Mar 15, 2026
ee7f109
fix: error message for windows should read ps1
snus-kin Mar 15, 2026
0c7b99e
feat: use --version when appropriate
snus-kin Mar 15, 2026
2d6e2e8
fix: cd to dotnet path to run version
snus-kin Mar 15, 2026
28ae5e1
fix: attempt `dotnet update` if dotnet install fails
snus-kin Mar 15, 2026
721e00b
fix: .send() :facepalm:
snus-kin Mar 15, 2026
2831ea1
docs: package & package:version
snus-kin Mar 15, 2026
da23ad5
feat: tests -> net10
snus-kin Mar 15, 2026
7b5e136
fix: use fs_err from tokio
snus-kin Mar 15, 2026
a9284f0
feat: first pass at managed dotnet installations
snus-kin Mar 15, 2026
805a530
fix: parse versions out and use appropriate channel / version
snus-kin Mar 15, 2026
4ef8bd5
feat: shadow dotnet in tests for CI flake
snus-kin Mar 15, 2026
71eaa6c
feat: handle corrupt existing installations during install
Mar 16, 2026
d556879
fix: Add error handling for install script download
Mar 16, 2026
dfcb504
test: Skip dotnet tests when dotnet not in PATH
Mar 16, 2026
12aee3d
test: more cov
Mar 16, 2026
a8ae679
style: lint
Mar 16, 2026
126a343
fix: nits
snus-kin Mar 16, 2026
7739b8b
fix: no test cfg on windows ver
snus-kin Mar 16, 2026
793b97e
test: let integration tests handle it
snus-kin Mar 16, 2026
a3a27bc
feat: windows ps install no logo
snus-kin Mar 16, 2026
02b781d
feat: normal error context so we don't panic
snus-kin Mar 16, 2026
3d722d7
fix: my 'l' key is playing up :sweatsmile:
snus-kin Mar 16, 2026
13138bf
fix: powershell ordering / use .exe :shrug:
snus-kin Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ default-filter = "binary_id(prek::languages) and test(bun::)"
inherits = "ci-core"
default-filter = "binary_id(prek::languages) and (test(docker::) or test(docker_image::))"

[profile.lang-dotnet]
inherits = "ci-core"
default-filter = "binary_id(prek::languages) and test(dotnet::)"

[profile.lang-golang]
inherits = "ci-core"
default-filter = "binary_id(prek::languages) and test(golang::)"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ env:
GHC_VERSION: "9.14.1" # Preinstalled in ubuntu-24.04 runner image
CABAL_VERSION: "3.16.1.0"
JULIA_VERSION: "1.12.4"
DOTNET_VERSION: "10.0"

# Cargo env vars
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -411,6 +412,7 @@ jobs:
language:
- bun
- docker
- dotnet
- golang
- haskell
- julia
Expand Down Expand Up @@ -541,6 +543,12 @@ jobs:
with:
version: ${{ env.JULIA_VERSION }}

- name: "Install .NET"
if: ${{ matrix.language == 'dotnet' }}
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: "Run language tests"
if: ${{ matrix.os != 'windows-latest' }}
env:
Expand Down
3 changes: 3 additions & 0 deletions crates/prek-consts/src/env_vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ impl EnvVars {
pub const RUSTUP_AUTO_INSTALL: &'static str = "RUSTUP_AUTO_INSTALL";
pub const CARGO_HOME: &'static str = "CARGO_HOME";
pub const RUSTUP_HOME: &'static str = "RUSTUP_HOME";

// .NET related
pub const DOTNET_ROOT: &'static str = "DOTNET_ROOT";
}

impl EnvVars {
Expand Down
Loading
Loading