Skip to content

Commit

Permalink
replace probkematic tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Nov 11, 2024
1 parent 0cb21ad commit fcfe728
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dockerCompose/src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export class ComposeEditor {

static readFrom(composePath: string): Compose {
const yamlString = fs.readFileSync(composePath, "utf8");
return yamlParse<Compose>(yamlString);
// Replace problematic tag with a placeholder value such as null
const yamlStringParsed = yamlString.replace(/!<tag:yaml\.org,2002:js\/undefined>/g, "null");
return yamlParse<Compose>(yamlStringParsed);
}

static getComposePath(dnpName: string, isCore: boolean): string {
Expand Down

0 comments on commit fcfe728

Please sign in to comment.