search hotlink icon profile hotlink icon
Package avatar Public | 2.1.x - 2.x.x

On This Page

Source Intersection

Version 2.1.0 introduces the dependency source intersection feature. Metadata files can now define multiple dependency sources for the same package. For example, the default Box package in production metadata fusion.json:

                {
    "structure": {
      "/dependencies": "valvoid.com/valvoid/box/2.0.0"
    }
}
            

This can be overridden either in local fusion.local.php or in development metadata fusion.dev.php as follows:

                return [
    "structure" => [
        "/dependencies" => [
            "gitlab.com/valvoid/box/'code/==2.0.0:2.0",
            "valvoid.com/valvoid/box" => null
        ]
    ]
];
            

Since the sources point to different platforms, the production source must be reset manually by setting it to null. Otherwise, it would be merged.