msys2 settings

Allow managing msys2.

msys2 is only available for Windows.

pkgs

pkgs allow installing some msys2 packages.

You need to specify the name of the packages to install.

A simple example, in the vscode-anywhere.sls file to ask to install the msys2 python 3.8.2-1 package in the python3module:

vscode-anywhere:
    python3:
        enabled: True
        msys2:
            pkgs:
                opts:
                    global: {}
                    install: {}
                    update: {}
                    uninstall: {}
                python3:
                    enabled: True
                    opts:
                        global: {}
                        install:
                            version: "3.8.2-1"
                        update:
                            version: "3.8.2-1"
                        uninstall: {}

This is just an example, if you do that you will have 2 python packages installed. One by scoop and another one by msys2.

enabled

True to enable, False to skip (default to False).

opts

opts is not mandatory but allows to pass extra args.

Extra args can be arguments described in the Saltstack msys2 states or can be global Saltstack arguments.

msys2 is not an official Saltstack states but a custom states written for VSCode-Anywhere.

Global packages settings

  • msys2:pkgs:opts:global: allow passing arguments to all msys2 packages when installing, updating, or uninstalling a package

  • msys2:pkgs:opts:install: allow passing arguments to all msys2 packages when installing a package (cf pkg_installed function)

  • msys2:pkgs:opts:update: allow passing arguments to all msys2 packages when updating a package (cf pkg_latest function)

  • msys2:pkgs:opts:uninstall: allow passing arguments to all msys2 packages when uninstalling a package (cf pkg_removed function)

Specific packages settings

  • msys2:pkgs:<mypkg>:opts:global: allow passing arguments to <mypkg> msys2 package when installing, updating, or uninstalling the package

  • msys2:pkgs:<mypkg>:opts:install: allow to pass arguments to <mypkg> msys2 packages when installing the package (cf pkg_installed function)

  • msys2:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> msys2 packages when updating the package (cf pkg_latest function)

  • msys2:<mypkg>:opts:uninstall: allow to pass arguments to <mypkg> msys2 packages when uninstalling the package (cf pkg_removed function)

Last updated