Skip to content

Commit

Permalink
Fix platform architecture slice index
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt authored Feb 17, 2024
1 parent 053d5e8 commit 488d60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec-node/devContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export async function createDockerParams(options: ProvisionOptions, disposables:
}, dockerPath, dockerComposePath);
const platformInfo = {
os: (<GoOS | undefined> common.buildxPlatform?.slice(0, common.buildxPlatform.indexOf('/'))) || mapNodeOSToGOOS(cliHost.platform),
arch: (<GoARCH | undefined> common.buildxPlatform?.slice(common.buildxPlatform.indexOf('/'))) || mapNodeArchitectureToGOARCH(cliHost.arch),
arch: (<GoARCH | undefined> common.buildxPlatform?.slice(common.buildxPlatform.indexOf('/') + 1)) || mapNodeArchitectureToGOARCH(cliHost.arch),
};
const buildKitVersion = options.useBuildKit === 'never' ? undefined : (await dockerBuildKitVersion({
cliHost,
Expand Down

0 comments on commit 488d60c

Please sign in to comment.