msys2 settings

Allow managing msys2arrow-up-right.

circle-exclamation

pkgs

pkgs allow installing some msys2 packagesarrow-up-right.

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 packagearrow-up-right 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: {}
circle-exclamation

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 statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

circle-info

msys2arrow-up-right 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_installedarrow-up-right function)

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

  • msys2:pkgs:opts:uninstall: allow passing arguments to all msys2 packages when uninstalling a package (cf pkg_removedarrow-up-right 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_installedarrow-up-right function)

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

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

Last updated