[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47754] [PATCH] gnu: transformations: fix with-latest option for git
[bug#47754] [PATCH] gnu: transformations: fix with-latest option for git source package.
Sat, 06 Nov 2021 19:17:05 +0100
On Thu, 04 Nov 2021 at 19:17, Z572 <email@example.com> wrote:
>>> If a package is a git source package, after use "with-latest"
>>> option, it's url
>>> will become to it's source. and build will fail.
>>> This patch just fix this.
>> I see. However, I am not convinced your example is correct, because
>> for instance,
>> $ file $(guix build r-soupx -S)
>> What you are seeing is: Git upstream source is modified by Guix (for
>> instance, patches are applied or files are removed; in the field
>> 'origin') and "guix build -S" returns what Guix actually builds, not
>> what upstream provides. Therefore, in this case, the modified source
>> is returned as compressed archive. However, when using the
>> transformation 'with-latest', in this case, "guix build -S
>> --with-latest" returns what upstream provides, thus a directory (or
>> something else as a file).
> I looked source again, just because of "upstream-source-compiler" don't
> git source package, all will become to use url-fetch.
> I'm have no idea how to change it, so i just check if package is
> git-source, use "git-checkout" instead of "upstream-source".
>> Maybe I miss something, but from me, the inconsistency comes from the
>> behavior of "guix build -S", not about the behaviour of 'with-latest'
>> transformation. And I also miss why the build would fail.
I am sorry if I misread you. What are you trying to solve?