-
Notifications
You must be signed in to change notification settings - Fork 10
include
Can be used in two ways: to combine configurations and to declare package dependencies.
config something
include package-descriptor
end
Where package-descriptor
is a package descriptor. No
quoting or escaping of the descriptor is allowed.
Can also be specified on the command-line via the --include
option.
There is no difference in syntax between grammar versions.
You can get the effects of one configuration in another by using the name of the other configuration preceded by a colon:
config a
include :b
end
config b
...
end
If you're familiar with Bourne-shell scripting, you can think of an include
as the equivalent of sourcing another script.
States that one package should be installed prior to the current one; can specify a configuration in the other package.
config default
include somepackage/1.2.3:some_non_default_configuration
end
Note that the configuration from the other package will be incorporated into the including configuration as above; if no configuration is specified in the package descriptor, a configuration named "default" will be looked for.
Version conflicts of included packages by included packages can be resolved by
override
statements.