You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a new package (new version of Swift.Toolchain) using the YamlCreate script. However, I am unable to validate this package.
The command winget validate --manifest Swift.Toolchain.yaml fails saying the multi-file manifest is incomplete.
I've also tried to use the Windows Sandbox as suggested here: https://github.com/microsoft/winget-pkgs/blob/master/doc/tools/YamlCreate.md but the command Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online prints an error saying the feature named Containers-DisposableClientVM is unknown.
Steps to reproduce
Manifest files:
Swift.Toolchain.yaml:
# Created with YamlCreate.ps1 v2.0.7 $debug=NVS1.7-2-1
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.1.0.schema.json
PackageIdentifier: Swift.Toolchain
PackageVersion: 5.5.3
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.1.0
# Created with YamlCreate.ps1 v2.0.7 $debug=NVS1.7-2-1
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.1.0.schema.json
PackageIdentifier: Swift.Toolchain
PackageVersion: 5.5.3
PackageLocale: en-US
Publisher: dt.compnerd.org
# PublisherUrl:
# PublisherSupportUrl:
# PrivacyUrl:
Author: Swift Open Source Project
PackageName: Swift
PackageUrl: https://www.swift.org/
License: Apache License 2.0
LicenseUrl: https://github.com/apple/swift/blob/main/LICENSE.txt
Copyright: Copyright (c) Swift Open Source Project
# CopyrightUrl:
ShortDescription: Swift Toolchain for Windows
# Description:
Moniker: swift
Tags:
- swift
# Agreements:
# ReleaseNotes:
# ReleaseNotesUrl:
ManifestType: defaultLocale
ManifestVersion: 1.1.0
Expected behavior
I would expect files generated by YamlCreate to validate.
Actual behavior
See above
Environment
Windows Package Manager v1.1.13405
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.493
Package: Microsoft.DesktopAppInstaller v1.16.13405.0
The text was updated successfully, but these errors were encountered:
For WinGet's multi-file manifests, you will need to pass the package's version folder to winget validate --manifest <PATH_TO_VERSION_FOLDER> instead of the YAML files.
For WinGet's singleton manifests, you can either do the above or validate the package's individual YAML file.
YamlCreate.ps1 already automatically validates manifests whenever you create them.
Brief description of your issue
I've created a new package (new version of
Swift.Toolchain
) using theYamlCreate
script. However, I am unable to validate this package.The command
winget validate --manifest Swift.Toolchain.yaml
fails saying the multi-file manifest is incomplete.I've also tried to use the Windows Sandbox as suggested here: https://github.com/microsoft/winget-pkgs/blob/master/doc/tools/YamlCreate.md but the command
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
prints an error saying the feature named Containers-DisposableClientVM is unknown.Steps to reproduce
Manifest files:
Swift.Toolchain.yaml:
Swift.Toolchain.installer.yaml:
Swift.Toolchain.locale.en-US.yaml:
Expected behavior
I would expect files generated by
YamlCreate
to validate.Actual behavior
See above
Environment
The text was updated successfully, but these errors were encountered: