Skip to content

Commit

Permalink
fix: add workaround for incorrect architecture of Apple Silicon in Do…
Browse files Browse the repository at this point in the history
…cker
  • Loading branch information
markdumay committed Jan 28, 2025
1 parent b98e066 commit d20ddce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ function binName() {
const ext = process.platform === 'win32' ? '.exe' : '';

switch (arch) {
case 'arm64': {
if (platform == 'linux') {

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Expected '===' and instead saw '=='.

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Expected '===' and instead saw '=='.
arch = 'amd64'

Check failure on line 20 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Missing semicolon.

Check failure on line 20 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Missing semicolon.
}
break;

Check failure on line 22 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Expected blank line before this statement.

Check failure on line 22 in lib/index.js

View workflow job for this annotation

GitHub Actions / Lint

Expected blank line before this statement.
}

case 'x64': {
arch = 'amd64';
break;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gethinode/yq-bin",
"version": "1.2.0",
"version": "1.2.1",
"yqVersion": "4.45.1",
"description": "Binary wrapper for yq",
"repository": {
Expand Down

0 comments on commit d20ddce

Please sign in to comment.