Skip to content
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

Nix channel 镜像中有些资源不存在 #7

Open
1 task done
HtwoO opened this issue Jul 16, 2024 · 0 comments
Open
1 task done

Nix channel 镜像中有些资源不存在 #7

HtwoO opened this issue Jul 16, 2024 · 0 comments

Comments

@HtwoO
Copy link

HtwoO commented Jul 16, 2024

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

CLI> nix-channel --add https://mirror.iscas.ac.cn/nix-channels/nixpkgs-22.11-darwin x86_64-darwin
CLI> nix-channel --update

之后我尝试安装软件,发现有些依赖的资源不存在。

CLI> curl --head https://mirror.iscas.ac.cn/nix-channels/store/nar/0hq112dxa117xj1zwilp92ann443zib33jjvak0h80zbn78fpbz8.nar.xz
HTTP/2 404
server: openresty
date: Tue, 16 Jul 2024 02:23:28 GMT
content-type: text/html; charset=utf-8,gbk
content-length: 153

期望的现象(What you expected to happen)

同样资源在南大镜像站上是有的。其实我是猜测的,考虑到 nix 是号称 fully deterministic 的,我猜想如果其他镜像站资源存在,相同路径的资源应该能找到。

CLI> curl --head https://mirror.nju.edu.cn/nix-channels/store/nar/0hq112dxa117xj1zwilp92ann443zib33jjvak0h80zbn78fpbz8.nar.xz
HTTP/2 200
server: nginx/1.27.0
date: Tue, 16 Jul 2024 02:24:17 GMT
content-type: application/octet-stream
content-length: 2799016
last-modified: Sat, 01 Jul 2023 12:24:03 GMT
etag: "64a01ae3-2ab5a8"
x-cache-status: MISS
accept-ranges: bytes

如何重现此问题(How to reproduce it)

跑同样的 curl 命令?

操作系统(OS Version)

macOS 11.7.8

浏览器(如果适用)(Browser version, if applicable)

No response

其他环境(Other environments)

CLI> nix --version
nix (Nix) 2.23.0

其他需要说明的事项(Anything else we need to know)

No response

@HtwoO HtwoO changed the title Nix channel 中有些资源不存在 Nix channel 镜像中有些资源不存在 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant