* bug#40377: guix build --with-commit is broken
@ 2020-04-01 17:41 Brice Waegeneire
2020-04-02 21:17 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Brice Waegeneire @ 2020-04-01 17:41 UTC (permalink / raw)
To: 40377
Hello,
`--with-commit' from `guix build' doesn't always work. It seems to not
really update the checkout contrary to what is reported since changing
the
`git-url`, by adding a slash for example, put it back on track. It makes
it
useless when trying out to build a newly released version. Following are
some examples:
$ guix build mlt
/gnu/store/m6y21nnyg6p0kcxbfj7k1dnbwbsbj006-mlt-6.18.0
$ guix build mlt --with-commit=mlt=v6.18.0
updating checkout of 'https://github.com/mltframework/mlt.git'...
guix build: error: Git failure while fetching
https://github.com/mltframework/mlt.git: the requested type does not
match the type in the ODB
$ guix build mlt --with-commit=mlt=v6.18.0
--with-git-url=mlt=https://github.com/mltframework/mlt.git/
updating checkout of 'https://github.com/mltframework/mlt.git/'...
retrieved commit 46a226217d8ec5bbf66a4fa3da138fd6924dd13b
The following derivations will be built:
/gnu/store/ljlj1dwkdfb7sziy02hi5scskdjmxv02-mlt-6.18.0.drv
/gnu/store/02q25aq6mi8287hbakc9v7z0jmq9f6cz-sdl-1.2.15.drv
/gnu/store/5z3v3w5aslbcsq0ia429n0pkshv6f14x-frei0r-plugins-1.7.
[...]
$ guix build picom --with-commit=picom=v7.5
updating checkout of 'https://github.com/yshui/picom.git'...
retrieved commit 3838f053afb1aa05ba1ab489f2dfaa44c00c9ef0
/gnu/store/q1bl4q1x4wmyps5ibljvj4x3y2nl24la-picom-7.5
$ guix build picom --with-commit=picom=vNext
updating checkout of 'https://github.com/yshui/picom.git'...
guix build: error: Git failure while fetching
https://github.com/yshui/picom.git: the requested type does not match
the type in the ODB
I've found out about this issue by reading pelzflorian's suggestion
about
adding a `--with-version' in [0] and [1], he wrote that a year ago,
before
support for tags was added to `--with-commit'.
[0]: https://issues.guix.info/issue/35744
[1]: https://lists.gnu.org/archive/html/help-guix/2019-05/msg00093.html
- Brice
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#40377: guix build --with-commit is broken
2020-04-01 17:41 bug#40377: guix build --with-commit is broken Brice Waegeneire
@ 2020-04-02 21:17 ` Ludovic Courtès
2020-04-03 7:02 ` Brice Waegeneire
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-04-02 21:17 UTC (permalink / raw)
To: Brice Waegeneire; +Cc: 40377-done
Hi,
Brice Waegeneire <brice@waegenei.re> skribis:
> $ guix build mlt --with-commit=mlt=v6.18.0
> updating checkout of 'https://github.com/mltframework/mlt.git'...
> guix build: error: Git failure while fetching
> https://github.com/mltframework/mlt.git: the requested type does not
> match the type in the ODB
[...]
> $ guix build picom --with-commit=picom=vNext
> updating checkout of 'https://github.com/yshui/picom.git'...
> guix build: error: Git failure while fetching
> https://github.com/yshui/picom.git: the requested type does not match
> the type in the ODB
Interestingly,
guix build guile-gcrypt --with-commit=guile-gcrypt=v0.2.0
would work just fine.
This is because the tags in the above examples actually point to a
“commit” object instead of pointing to a “tag” object as in the
guile-gcrypt case. Weird.
Fixed with commit efa578ecaece67366b4b0e2266de7c2faaa4ae54.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#40377: guix build --with-commit is broken
2020-04-02 21:17 ` Ludovic Courtès
@ 2020-04-03 7:02 ` Brice Waegeneire
0 siblings, 0 replies; 3+ messages in thread
From: Brice Waegeneire @ 2020-04-03 7:02 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 40377-done
Hello Ludovic,
On 2020-04-02 21:17, Ludovic Courtès wrote:
> Fixed with commit efa578ecaece67366b4b0e2266de7c2faaa4ae54.
Thank you for that really quick patch. It seems to be working
well now.
- Brice
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-03 7:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 17:41 bug#40377: guix build --with-commit is broken Brice Waegeneire
2020-04-02 21:17 ` Ludovic Courtès
2020-04-03 7:02 ` Brice Waegeneire
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).