]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
go: Exclude vcs files when installing deps
authorAlex Kiernan <alex.kiernan@gmail.com>
Sun, 5 May 2019 05:23:32 +0000 (06:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 May 2019 11:12:30 +0000 (12:12 +0100)
commit2ee246524ab881d57d8aac204f671215a25a58d3
tree842510362f69cadd2783cd538ae33408937ccb75
parent9ff61fa83a0a4f2a7b5b0376b6c48fb1173c9ac7
go: Exclude vcs files when installing deps

Because our clones use the host git, on (say) Ubuntu 18.04, the local
git directories acquire perl scripts such as fsmonitor-watchman.sample.
During packaging, this leads to failures:

  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA Issue: /usr/lib/go/pkg/dep/sources/https---github.com-nsf-termbox--go/.git/hooks/fsmonitor-watchman.sample contained in package go-hsperfdata-staticdev requires /usr/bin/perl, but no providers found in RDEPENDS_go-hsperfdata-staticdev? [file-rdeps]
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa:
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: Function failed: do_package_qa

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/go.bbclass