failure while fetching: uri changed final destination during transfer #1004

Open
opened 2025-10-05 17:19:28 +00:00 by teofilc · 1 comment

Describe the bug

I have seen a failure like this a couple of times now on GHC's CI while fetching:

error: uri https://github.com/edolstra/flake-compat/archive/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec.tar.gz changed final destination from https://github.com/edolstra/flake-compat/archive/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec.tar.gz to https://codeload.github.com/edolstra/flake-compat/tar.gz/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec during transfer

See for instance: https://gitlab.haskell.org/ghc/head.hackage/-/jobs/2311058

I'm not sure if this is a bug in Lix proper or something wrong with the CI environment in which it is running.

We are running Lix-2.93.3 using the official Docker image.

Steps To Reproduce

As far as I can tell the error is not easily reproducible and intermittent.
We have only seen it twice.

Expected behavior

We shouldn't error if GitHub decides that it wants to redirect us quite oddly mid transfer like this.

Lix version

2.93.3 using the official docker image

## Describe the bug I have seen a failure like this a couple of times now on GHC's CI while fetching: ``` error: uri https://github.com/edolstra/flake-compat/archive/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec.tar.gz changed final destination from https://github.com/edolstra/flake-compat/archive/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec.tar.gz to https://codeload.github.com/edolstra/flake-compat/tar.gz/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec during transfer ``` See for instance: https://gitlab.haskell.org/ghc/head.hackage/-/jobs/2311058 I'm not sure if this is a bug in Lix proper or something wrong with the CI environment in which it is running. We are running Lix-2.93.3 using the official Docker image. ## Steps To Reproduce As far as I can tell the error is not easily reproducible and intermittent. We have only seen it twice. ## Expected behavior We shouldn't error if GitHub decides that it wants to redirect us quite oddly mid transfer like this. ## Lix version 2.93.3 using the official docker image
Owner

this is github redirecting a download of a file to two different urls depending on ... something. today we reject such redirects because they're an easy cause of undetectable corruption, but perhaps the error should be downgraded to a warning

this is github redirecting a download of a file to two different urls depending on ... something. today we reject such redirects because they're an easy cause of undetectable corruption, but perhaps the error should be downgraded to a warning
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#1004
No description provided.