Merge pull request #2367 from balena-io/support-for-fragments

Add support for YAML anchors and aliases in 'docker-compose.yml'
This commit is contained in:
bulldozer-balena[bot] 2021-10-22 19:11:47 +00:00 committed by GitHub
commit 19040ccb6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,7 @@ export function createProject(
const compose = require('resin-compose-parse');
// both methods below may throw.
const rawComposition = yml.load(composeStr, {
schema: yml.FAILSAFE_SCHEMA,
});
const rawComposition = yml.load(composeStr);
const composition = compose.normalize(rawComposition);
projectName ||= path.basename(composePath);