On 9/25/22 7:07 PM, "Mark E. Fuller" <fuller(a)fedoraproject.org> wrote:
Hi all,
I'm working on a COPR to try to get Terraform built so that I can get it into Fedora
and I
have just a few minor issues outstanding that I could use some feedback/help on:
1)
https://download.copr.fedorainfracloud.org/results/fuller/terraform/fedor...
...
cannot find package "github.com/hashicorp/aws-sdk-go-base/tools" in any of:
/usr/lib/golang/src/github.com/hashicorp/aws-sdk-go-base/tools (from $GOROOT)
/builddir/build/BUILD/aws-sdk-go-base-0.4.0/_build/src/github.com/hashicorp/aws-sdk-go-base/tools
(from $GOPATH)
/usr/share/gocode/src/github.com/hashicorp/aws-sdk-go-base/tools
...
Can anyone suggest why I would get the error that this package cannot find one of its own
internal modules?
You shouldm't have a build section with tools.
2)
https://download.copr.fedorainfracloud.org/results/fuller/terraform/fedor...
...
No matching package to install:
'golang(github.com/tencentyun/qcloud-cos-sts-sdk/go)'
...
Here I have already built
golang(github.com/tencentyun/qcloud-cos-sts-sdk) in my COPR,
but
the module references above ($TL/go) isn't found.
Any thoughts?
Tag v3.0.0 doesn't have go code. Use the latest commit.
3) And finally, I've disabled tests in a few places - doing so
with e.g. "-d folder" works
fine, but e.g. "-d internal/folder" for a subfolder doesn't seem to work
right? Is there a
syntax issue I'm missing, or did I just misread something and both examples I gave
here are
correct?
Use -t for trees instead of the top folder woth -d.
Although nowadays I prefer to disable each test individually like
for test in "TestRestart" \
"TestStop" \
"TestActive" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print
"\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done