Skip to content

Commit

Permalink
Switch docker compose defaults from v1 to v2 (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielglazer authored Nov 27, 2023
1 parent 336f0cd commit 9941583
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export async function getComposeClient(environment: NodeJS.ProcessEnv): Promise<
async function getComposeInfo(): Promise<ComposeInfo | undefined> {
try {
return {
version: (await dockerComposeV1.version()).data.version,
compatability: "v1",
version: (await dockerComposeV2.version()).data.version,
compatability: "v2",
};
} catch (err) {
try {
return {
version: (await dockerComposeV2.version()).data.version,
compatability: "v2",
version: (await dockerComposeV1.version()).data.version,
compatability: "v1",
};
} catch {
return undefined;
Expand Down

0 comments on commit 9941583

Please sign in to comment.