Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fetching packages on CI #1036

Closed Answered by bioball
pixlwave asked this question in Q&A
Discussion options

Since switching to using a remote package, a couple of our workflows have started to fail occasionally with the following error:

⁦Exception when making request `GET https://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.0.1`:
HTTP connect timed out⁦

They're basically doing brew install pkl && pkl eval -o output.file input.pkl and we've seen it in one project where we import the package directly into a single file and another where we import the package into a project.

Is there anything else we should be doing here? I'm thinking something like passing a flag to ask pkl for x number of retries or if we can cache the downloaded package across runs (I haven't figured out where they live yet).

You must be logged in to vote

See this post for an approach for vendoring your dependencies:

#534 (comment)

Replies: 1 comment 2 replies

Comment options

(I haven't figured out where they live yet).

Answering my own question, I found it: ~/.pkl/cache. Will try and cache this and see what happens 🤞

You must be logged in to vote
2 replies
Comment options

See this post for an approach for vendoring your dependencies:

#534 (comment)

Answer selected by pixlwave
Comment options

Woah, that's neat, thanks for pointing this out @bioball.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /