ui: Only suggest modules that export the unbound variable identifier.
authorLudovic Courtès <ludo@gnu.org>
Thu, 15 Oct 2020 14:41:14 +0000 (16:41 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 15 Oct 2020 16:50:22 +0000 (18:50 +0200)
commit5ef1508942ee083ed22b844f5291e59320016b79
treed4133efbe23e696d8633339b74808b1ff6a1c86b
parent48720afb322ab5ad1b6102276f4795a14803fa61
ui: Only suggest modules that export the unbound variable identifier.

Fixes <https://bugs.gnu.org/43498>.
Reported by Tobias Geerinckx-Rice <me@tobias.gr>.

* guix/ui.scm (known-variable-definition): Check for variables in the
public interface of HEAD, not in HEAD itself.
* tests/guix-build.sh: Add test.
guix/ui.scm
tests/guix-build.sh