-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to peel the archive from ruff #103
Comments
Okay, so what I've figured out so far is that the file I figured this out by building import * as std from "std";
export default () => {
return std
.download({
url: `https://github.com/astral-sh/ruff/archive/refs/tags/0.5.3.tar.gz`,
hash: std.sha256Hash(
"7d3e1d6405a5c0e9bf13b947b80327ba7330f010060aaba514feecfd6d585251",
),
})
.unarchive("tar", "gzip");
}; What I've pieced together is that the name |
As a temporary workaround, you can also use GNU Tar directly to extract the archive like this: export const project = {
name: "ruff",
version: "0.5.3",
};
const sourceTar = std.download({
url: `https://github.com/astral-sh/ruff/archive/refs/tags/${project.version}.tar.gz`,
hash: std.sha256Hash(
"7d3e1d6405a5c0e9bf13b947b80327ba7330f010060aaba514feecfd6d585251",
),
});
const source = std.process({
command: "tar",
args: ["-xf", sourceTar, "--strip-components=1", "-C", std.outputPath],
outputScaffold: std.directory(),
dependencies: [std.tools()],
}); |
I made a small Rust projects to try out |
Thanks for the investigation! Indeed, if this library is unmaintained, it's reasonable to use an alternative. I opened, in the meantime, the PR to add Ruff based on your suggestion. |
I recently tried to package the ruff tool. While peeling the directory, an error occurred:
I then hacked brioche to print the content of the directory (as seen by brioche) since I don't have easily access to a debugger with my development environment:
But looking manually inside the archive with the
tar
command, I wasn't able to see the file64f43441c8d3a0e9315e5de1d5e644b0d097e7cc.data
:> tar -tf ruff-0.5.3.tar.gz ruff-0.5.3/ ruff-0.5.3/.cargo/ .... ruff-0.5.3/scripts/release/bump.sh ruff-0.5.3/scripts/transform_readme.py ruff-0.5.3/scripts/update_ambiguous_characters.py ruff-0.5.3/scripts/update_schemastore.py
This is the project I used locally:
The text was updated successfully, but these errors were encountered: