Skip to content

Commit 7e1ade6

Browse files
authored
Merge pull request #590 from dennisameling/bitness-to-architecture
Switch from `bitness` to `architecture`
2 parents 4f36d54 + 1a6b81c commit 7e1ade6

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

dist/index.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ const GIT_CONFIG_PARAMETERS = `'checkout.workers=56'`
2828
export function getArtifactMetadata(
2929
flavor: string,
3030
architecture: string
31-
): {bitness: string; repo: string; artifactName: string} {
32-
const bitness = architecture === 'i686' ? '32' : '64'
31+
): {repo: string; artifactName: string} {
3332
const repo = {
3433
i686: 'git-sdk-32',
3534
x86_64: 'git-sdk-64',
@@ -42,7 +41,7 @@ export function getArtifactMetadata(
4241

4342
const artifactName = `${repo}-${flavor}`
4443

45-
return {bitness, repo, artifactName}
44+
return {repo, artifactName}
4645
}
4746

4847
async function clone(
@@ -95,10 +94,7 @@ export async function getViaGit(
9594
}> {
9695
const owner = 'git-for-windows'
9796

98-
const {bitness, repo, artifactName} = getArtifactMetadata(
99-
flavor,
100-
architecture
101-
)
97+
const {repo, artifactName} = getArtifactMetadata(flavor, architecture)
10298

10399
const octokit = githubToken ? new Octokit({auth: githubToken}) : new Octokit()
104100
let head_sha: string
@@ -167,7 +163,7 @@ export async function getViaGit(
167163
...traceArg,
168164
'.tmp/build-extra/please.sh',
169165
'create-sdk-artifact',
170-
`--bitness=${bitness}`,
166+
`--architecture=${architecture}`,
171167
`--out=${outputDirectory}`,
172168
'--sdk=.tmp',
173169
flavor

0 commit comments

Comments
 (0)