Skip to content

Commit 1007b58

Browse files
committed
v1: bump libpkgx
we deprecated .gz bottles, which are still preferred by v1 on linux. so, we sweep up behind ourselves. ref: pkgxdev/pantry#13729
1 parent a4d9575 commit 1007b58

4 files changed

Lines changed: 49 additions & 41 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
- run: deno install --frozen
3939
- run: deno task test --coverage=cov_profile --no-check
4040
- run: deno coverage cov_profile --lcov --exclude=tests/ --output=cov_profile.lcov
41+
# errors on macOS
42+
- run: |
43+
brew tap coverallsapp/coveralls
44+
brew trust --formula coverallsapp/coveralls/coveralls
45+
if: matrix.os == 'macos-latest'
4146
- uses: coverallsapp/github-action@v2
4247
with:
4348
path-to-lcov: cov_profile.lcov

‎deno.jsonc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"@std/yaml": "jsr:@std/yaml@^1.0.5",
3636
"is-what": "https://deno.land/x/is_what@v4.1.15/src/index.ts",
3737
"outdent": "jsr:@cspotcode/outdent@^0.8",
38-
"pkgx": "https://deno.land/x/libpkgx@v0.20.3/mod.ts",
39-
"pkgx/": "https://deno.land/x/libpkgx@v0.20.3/src/",
38+
"pkgx": "https://deno.land/x/libpkgx@v0.22.0/mod.ts",
39+
"pkgx/": "https://deno.land/x/libpkgx@v0.22.0/src/",
4040
// test dependencies
4141
"faker": "npm:@faker-js/faker@^9.4.0",
4242
"npm:@types/node@*": "npm:@types/node@*" // implicit

‎deno.lock‎

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

‎src/utils/execve.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,18 @@ function execve(arg0: Deno.PointerValue, args: Deno.PointerValue, env: Deno.Poin
141141
parameters: ["pointer", "pointer", "pointer"],
142142
result: "i32"
143143
},
144-
errno: {
145-
type: "i32"
144+
errno_location: {
145+
name: host().platform == 'darwin' ? "__error" : "__errno_location",
146+
parameters: [],
147+
result: "pointer"
146148
}
147149
}
148150
)
149151

150152
try {
151153
libc.symbols.execve(arg0, args, env)
152-
return libc.symbols.errno
154+
const errno = libc.symbols.errno_location()
155+
return errno ? new Deno.UnsafePointerView(errno).getInt32() : 0
153156
} finally {
154157
libc.close()
155158
}

0 commit comments

Comments
 (0)