Comments (5)
Ref #18218
from deno.
@rnbguy may I know the platform you're encoutering the issue on? The script works fine with Deno 1.44.4
on macOS
➜ 24314 deno --version
deno 1.44.4 (release, aarch64-apple-darwin)
v8 12.6.228.9
typescript 5.4.5
➜ 24314 cat a.ts
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: a.ts
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ import * as tar from "npm:[email protected]";
2 │ import { pipeline } from "node:stream/promises";
3 │
4 │ await fetch(
5 │ "https://github.com/informalsystems/apalache/releases/download/v0.44.11/apalache.tgz",
6 │ ).then((resp) =>
7 │ pipeline(
8 │ resp.body,
9 │ tar.extract({ cwd: ".", strict: true }),
10 │ )
11 │ );
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
➜ 24314 deno run -A a.ts
➜ 24314 ls -lR apalache
total 24
-rw-r--r-- 1 sr staff 11945 May 6 18:07 LICENSE
drwxr-xr-x 3 sr staff 96 Jun 24 12:10 bin
drwxr-xr-x 3 sr staff 96 Jun 24 12:10 lib
apalache/bin:
total 8
-rwxr-xr-x 1 sr staff 1945 May 6 18:07 apalache-mc
apalache/lib:
total 230920
-rw-r--r-- 1 sr staff 104008305 May 6 18:07 apalache.jar
from deno.
I am on Linux.
from deno.
I just realized, this works fine on my personal Arch Linux computer. But fails on docker images. I tried:
alpine
,debian
,ubuntu
tags fordenoland/deno
image.archlinux
image withpacman -S deno
(same setup as my personal computer).
from deno.
It looks like it might be something with root
user. The following works fine:
$ docker run --user=deno --workdir=/home/deno denoland/deno:alpine eval '
import * as tar from "npm:[email protected]";
import { pipeline } from "node:stream/promises";
await fetch(
"https://github.com/informalsystems/apalache/releases/download/v0.44.11/apalache.tgz",
).then((resp) =>
pipeline(
resp.body,
tar.extract({ cwd: ".", strict: true }),
)
);
'
If you remove --user=deno
or --workdir=/home/deno
, the command fails.
from deno.
Related Issues (20)
- Feat: shareable presets for formatting and linting
- feat: LSP should suggest `@ts-types` for npm packages with missing types HOT 1
- Implement `PerformanceObserver.observe` from `node:perf_hooks` HOT 1
- Support semver ranges in `deno upgrade --version=`
- DENO_AUTH_TOKEN does not work, when it contains an extra \n at the end HOT 1
- Enable `log` feature of `tracing` crate
- ReadableStream.pipeTo doesn't always work with Deno streams. HOT 5
- add Uint8Array to/from base64 and hex HOT 3
- Feat: New CLI Subcommand - `deno types`
- Deno panics when arguments are logged inside Proxy get handler HOT 4
- Improve error message when accessing /proc
- node:http2 stream error when using npm:firebase-admin
- Bug: Importing npm package with `.json` main entry errors HOT 5
- Generated HTML doc search results are partially hidden behind the header
- `deno doc --html` generates incorrect links when searching from a subpage
- WebSocket memory leak HOT 2
- `createRequire(import.meta.url)` doesn't work from `jsr` registry HOT 8
- `deno clean` ignores `DENO_DIR` env var HOT 2
- Can't install `deployctl` in freshly installed Deno environment
- WebSocketStream unhandled rejection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.