Skip to content
/ schemas Public

Repository with JSON schemas of Spack config files for editor support

Notifications You must be signed in to change notification settings

spack/schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Editor support for Spack config files

To get validation and autocompletion of Spack configuration files, enable an extension for the YAML Language Server Protocol (LSP) in your editor of choice.

Then add the following line at the top of your YAML file:

Environments (spack.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/spack.json

Packages (packages.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/packages.json

Config (config.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/config.json

Modules (modules.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/modules.json

Mirrors (mirrors.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/mirrors.json

Concretizer (concretizer.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/concretizer.json

CI (ci.yaml)

# yaml-language-server: $schema=https://raw.githubusercontent.com/spack/schemas/refs/heads/main/schemas/ci.json

About

Repository with JSON schemas of Spack config files for editor support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages