feat: Implement a --use-cache flag closes #100 #305
Annotations
2 errors and 4 warnings
Assign labels
Resource not accessible by integration
{
name: 'HttpError',
id: '13487587077',
status: 403,
response: {
url: 'https://api.github.com/repos/Quantco/pixi-pack/issues/104/labels',
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 23 Feb 2025 22:39:22 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'issues=write; pull_requests=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'B85E:349B2D:907A2C:1250A5E:67BBA39A',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14982',
'x-ratelimit-reset': '1740353916',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '18',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/issues/labels#add-labels-to-an-issue',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/Quantco/pixi-pack/issues/104/labels',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.4.0 octokit-core.js/3.6.0 Node.js/20.18.0 (linux; x64)',
'x-github-delivery': '13487587077',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"labels":["enhancement"]}',
request: {}
},
event: {
id: '13487587077',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '# Motivation\r\n' +
'\r\n' +
'Following up on https://github.com/Quantco/pixi-pack/issues/100 (thanks for the opportunity @pavelzw !).\r\n' +
'\r\n' +
'As the README of this PR states, having a cache for downloads is useful when:\r\n' +
'* Creating multiple packs with overlapping dependencies\r\n' +
'* Working with large packages that take time to download\r\n' +
'* Operating in environments with limited bandwidth\r\n' +
'* Running CI/CD pipelines where package caching can significantly improve build times\r\n' +
'\r\n' +
"`pixi`'s cache is for already-extracted packages, but here we need them un-extracted, so implementing an optional (behind the `--use-cache` flag) cache for downloads.\r\n" +
'\r\n' +
'I have little experience in Rust[1], let me know if this is an okay implementation. \r\n' +
'\r\n' +
'There are some formatting changes, I used the autoformat feature from VSCode with the rust-analyzer extension.\r\n' +
'\r\n' +
'# Changes\r\n' +
'\r\n' +
'- Added a `--use-cache CACHE_DIR` flag.\r\n' +
'- Added implementation for it in the download function.\r\n' +
'- Added a test for it.\r\n' +
'- Added README docs about it.\r\n' +
'\r\n' +
'\r\n' +
"[1] It's so easy to jump into a project thanks to cargo! I just cloned, ran `cargo build`, then `cargo test` (which failed due to my slow internet)... and then I could just `cargo run` to test my changes
|
Assign labels
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/b1476f6e6eb133afa41ed8589daba6dc69b4d3f5/dist/index.js:7146:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/b1476f6e6eb133afa41ed8589daba6dc69b4d3f5/dist/index.js:61885:18)
{
name: 'AggregateError',
event: {
id: '13487587077',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '# Motivation\r\n' +
'\r\n' +
'Following up on https://github.com/Quantco/pixi-pack/issues/100 (thanks for the opportunity @pavelzw !).\r\n' +
'\r\n' +
'As the README of this PR states, having a cache for downloads is useful when:\r\n' +
'* Creating multiple packs with overlapping dependencies\r\n' +
'* Working with large packages that take time to download\r\n' +
'* Operating in environments with limited bandwidth\r\n' +
'* Running CI/CD pipelines where package caching can significantly improve build times\r\n' +
'\r\n' +
"`pixi`'s cache is for already-extracted packages, but here we need them un-extracted, so implementing an optional (behind the `--use-cache` flag) cache for downloads.\r\n" +
'\r\n' +
'I have little experience in Rust[1], let me know if this is an okay implementation. \r\n' +
'\r\n' +
'There are some formatting changes, I used the autoformat feature from VSCode with the rust-analyzer extension.\r\n' +
'\r\n' +
'# Changes\r\n' +
'\r\n' +
'- Added a `--use-cache CACHE_DIR` flag.\r\n' +
'- Added implementation for it in the download function.\r\n' +
'- Added a test for it.\r\n' +
'- Added README docs about it.\r\n' +
'\r\n' +
'\r\n' +
"[1] It's so easy to jump into a project thanks to cargo! I just cloned, ran `cargo build`, then `cargo test` (which failed due to my slow internet)... and then I could just `cargo run` to test my changes (before I added my test, which I should probably have done first)."
}
},
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/210677?v=4',
created_at: '2024-08-13T11:33:57Z',
description: null,
html_url: 'https://github.com/enterprises/quantco',
id: 210677,
name: 'QuantCo',
node_id: 'E_kgDOAAM29Q',
slug: 'quantco',
updated_at: '2025-02-12T13:07:16Z',
website_url: null
},
number: 104,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/15262568?v=4',
description: '',
events_url: 'https://api.github.com/orgs/Quantco/events',
hooks_url: 'https://api.github.com/orgs/Quantco/hooks',
id: 15262568,
issues_url: 'https://api.github.com/orgs/Quantco/issues',
login: 'Quantco',
members_url: 'https://api.github.com/orgs/Quantco/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjE1MjYyNTY4',
public_members_url: 'https://api.github.com/orgs/Quantco/public_members{/member}',
repos_url: 'https://api.github.com/orgs/Quantco/repos',
url: 'https://api.github.com/orgs/Quantco'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/Quantco/pixi-pack/issues/104/comments'
},
commits: {
href: 'https://api.github.com/repos/Quantco/pixi-pack/pulls/104/commits'
},
html: { href: 'https://github.com/Quantco/pixi-pack/pull/104' },
issue: {
href: 'https://api.github.com/repos/Quantco/pixi-pack/issues/104'
},
review_comment: {
href: 'https://api.github.com/repos/Quantco/pixi-pack/pulls/comments{/number}'
},
|
Assign labels
"pull_request_target.opened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
|
Assign labels
"pull_request_target.reopened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
|
Assign labels
"pull_request_target.synchronize" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
|
Assign labels
"pull_request_target.edited" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
|
Loading