Skip to content

Commit 979c718

Browse files
authored
Merge branch 'main' into winget-manifest-uploader
2 parents 2134168 + fa7173e commit 979c718

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2075
-390
lines changed

archive/registry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ clap = { version = "4.1", features = ["derive"] }
1919
crossterm = { version = "0.26" }
2020
ntreg = { path = "../ntreg" }
2121
ntstatuserror = { path = "../ntstatuserror" }
22-
schemars = { version = "0.8" }
22+
schemars = { version = "1.0" }
2323
serde = { version = "1.0", features = ["derive"] }
2424
serde_json = { version = "1.0", features = ["preserve_order"] }
2525

build.ps1

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ param(
2727
)
2828

2929
$env:RUSTC_LOG=$null
30+
$env:RUSTFLAGS='-Dwarnings'
31+
3032
if ($Verbose) {
3133
$env:RUSTC_LOG='rustc_codegen_ssa::back::link=info'
3234
}
@@ -43,6 +45,7 @@ if ($GetPackageVersion) {
4345
$filesForWindowsPackage = @(
4446
'appx.dsc.extension.json',
4547
'appx-discover.ps1',
48+
'bicep.dsc.extension.json',
4649
'dsc.exe',
4750
'dsc_default.settings.json',
4851
'dsc.settings.json',
@@ -78,6 +81,7 @@ $filesForWindowsPackage = @(
7881
)
7982

8083
$filesForLinuxPackage = @(
84+
'bicep.dsc.extension.json',
8185
'dsc',
8286
'dsc_default.settings.json',
8387
'dsc.settings.json'
@@ -102,6 +106,7 @@ $filesForLinuxPackage = @(
102106
)
103107

104108
$filesForMacPackage = @(
109+
'bicep.dsc.extension.json',
105110
'dsc',
106111
'dsc_default.settings.json',
107112
'dsc.settings.json'
@@ -304,6 +309,7 @@ if (!$SkipBuild) {
304309
"dsc_lib",
305310
"dsc",
306311
"dscecho",
312+
"extensions/bicep",
307313
"osinfo",
308314
"powershell-adapter",
309315
'resources/PSScript',
@@ -312,8 +318,7 @@ if (!$SkipBuild) {
312318
"sshdconfig",
313319
"tools/dsctest",
314320
"tools/test_group_resource",
315-
"y2j",
316-
"."
321+
"y2j"
317322
)
318323
$pedantic_unclean_projects = @()
319324
$clippy_unclean_projects = @("tree-sitter-dscexpression", "tree-sitter-ssh-server-config")
@@ -553,7 +558,11 @@ if ($Test) {
553558
(Get-Module -Name Pester -ListAvailable).Path
554559
}
555560

556-
Invoke-Pester -ErrorAction Stop
561+
try {
562+
Invoke-Pester -ErrorAction Stop
563+
} catch {
564+
throw "Pester had unexpected error: $($_.Exception.Message)"
565+
}
557566
}
558567

559568
function Find-MakeAppx() {

docs/reference/resources/Microsoft/DSC/Transitional/RunCommandOnSet/examples/run-powershell-command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dsc config set --input $document
7070
To verify the result, you can run the `winget.exe` command:
7171

7272
```powershell
73-
winget list --id Microsoft.PowerShell
73+
winget list --id Microsoft.PowerShell.Preview
7474
```
7575

7676
<!-- Link reference definitions -->

docs/reference/resources/Microsoft/Windows/WindowsPowerShell/examples/manage-a-windows-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ differingProperties:
4040
- StartupType
4141
```
4242
43-
The `inDesiredState` field of the result object is set to `false`, indicating that the instance isn't in the desired state. The `differingProperties` field indicates that the `property` property is mismatched between the desired state and actual state.
43+
The `inDesiredState` field of the result object is set to `false`, indicating that the instance isn't in the desired state. The `differingProperties` field indicates that the `StartupType` property is mismatched between the desired state and actual state.
4444

4545
## Ensure a service is running with automatic startup
4646

docs/reference/schemas/config/functions/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ resources:
5151
- name: Echo bitness
5252
type: Microsoft.DSC.Debug/Echo
5353
properties:
54-
output: "[reference(resourceId('Microsoft/OSInfo', 'System')).actualState.bitness]"
54+
output: "[reference(resourceId('Microsoft/OSInfo', 'System')).bitness]"
5555
dependsOn:
5656
- "[resourceId('Microsoft/OSInfo', 'System')]"
5757
```
5858
5959
```bash
60-
dsc config get --file reference.example.1.dsc.config.yaml config get
60+
dsc config get --file reference.example.1.dsc.config.yaml
6161
```
6262

6363
```yaml

dsc/Cargo.lock

Lines changed: 14 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dsc/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dsc"
3-
version = "3.2.0-preview.2"
3+
version = "3.2.0-preview.3"
44
edition = "2021"
55

66
[profile.release]
@@ -23,12 +23,12 @@ jsonschema = { version = "0.30", default-features = false }
2323
path-absolutize = { version = "3.1" }
2424
regex = "1.11"
2525
rust-i18n = { version = "3.1" }
26-
schemars = { version = "0.8" }
26+
schemars = { version = "1.0" }
2727
serde = { version = "1.0", features = ["derive"] }
2828
serde_json = { version = "1.0", features = ["preserve_order"] }
2929
serde_yaml = { version = "0.9" }
3030
syntect = { version = "5.0", features = ["default-fancy"], default-features = false }
31-
sysinfo = { version = "0.35" }
31+
sysinfo = { version = "0.36" }
3232
thiserror = "2.0"
3333
tracing = { version = "0.1" }
3434
tracing-subscriber = { version = "0.3", features = ["ansi", "env-filter", "json"] }

dsc/examples/bicepconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"experimentalFeaturesEnabled": {
3+
"desiredStateConfiguration": true
4+
}
5+
}

dsc/examples/hello_world.dsc.bicep

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This is a very simple example Bicep file for testing
2+
3+
targetScope = 'desiredStateConfiguration'
4+
5+
// use workaround where Bicep currently requires version in date format
6+
resource echo 'Microsoft.DSC.Debug/Echo@2025-01-01' = {
7+
name: 'exampleEcho'
8+
properties: {
9+
output: 'Hello, world!'
10+
}
11+
}

dsc/src/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ pub enum SchemaType {
280280
TestResult,
281281
ResolveResult,
282282
DscResource,
283+
Resource,
283284
ResourceManifest,
284285
Include,
285286
Configuration,

0 commit comments

Comments
 (0)