Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendoring fails for some Go packages with FileNotFoundError #14

Open
glaubitz opened this issue Jul 29, 2021 · 0 comments
Open

Vendoring fails for some Go packages with FileNotFoundError #14

glaubitz opened this issue Jul 29, 2021 · 0 comments

Comments

@glaubitz
Copy link

I have tried to update the openSUSE package terraform-provider-google to its latest upstream version.

For that, I checked out the package from OBS with osc bco systemsmanagement:terraform terraform-provider-google.

I then edited the _service file and bumped the version number to the latest upstream version.

When I tried to run osc service ra, it failed with the following backtrace:

glaubitz@suse-laptop:~/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google> osc service ra
Cloning into '/home/glaubitz/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google/terraform-provider-google'...
4fcebd169a47f534cb313f8acabe9b1103ee8359
merge: origin/v3.76.0 - not something we can merge
Already up to date.
4fcebd169a47f534cb313f8acabe9b1103ee8359
Compressed terraform-provider-google-3.76.0.tar to terraform-provider-google-3.76.0.tar.gz
INFO:obs-service-go_modules:Using archive terraform-provider-google-3.76.0.tar.gz
INFO:obs-service-go_modules:Running OBS Source Service: obs-service-go_modules
INFO:obs-service-go_modules:Extracting terraform-provider-google-3.76.0.tar.gz to /home/glaubitz/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google/tmp9nqshmfc.go_modules.service
INFO:obs-service-go_modules:Using go.mod found at /home/glaubitz/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google/tmp9nqshmfc.go_modules.service/terraform-provider-google-3.76.0/go.mod
INFO:obs-service-go_modules:go mod download
INFO:obs-service-go_modules:go mod verify
INFO:obs-service-go_modules:all modules verified
INFO:obs-service-go_modules:go mod vendor
github.com/hashicorp/terraform-provider-google imports
        github.com/golangci/golangci-lint/cmd/golangci-lint imports
        github.com/golangci/golangci-lint/pkg/commands imports
        github.com/golangci/golangci-lint/pkg/lint/lintersdb imports
        github.com/golangci/golangci-lint/pkg/golinters imports
        golang.org/x/tools/go/analysis/passes/buildtag imports
        go/build/constraint: package go/build/constraint is not in GOROOT (/usr/lib64/go/1.14/src/go/build/constraint)
INFO:obs-service-go_modules:Vendor go.mod dependencies to vendor.tar.gz
Traceback (most recent call last):
  File "/usr/lib/obs/service/go_modules", line 174, in <module>
    main()
  File "/usr/lib/obs/service/go_modules", line 163, in main
    tar.add(vendor_dir, arcname=("vendor"))
  File "/usr/lib64/python3.8/tarfile.py", line 1955, in add
    tarinfo = self.gettarinfo(name, arcname)
  File "/usr/lib64/python3.8/tarfile.py", line 1834, in gettarinfo
    statres = os.lstat(name)
FileNotFoundError: [Errno 2] No such file or directory: '/home/glaubitz/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google/tmp9nqshmfc.go_modules.service/terraform-provider-google-3.76.0/vendor'
Aborting: service call failed:  /usr/lib/obs/service/go_modules --archive terraform-provider-google-3.76.0.tar.gz --outdir /home/glaubitz/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google/tmp9nqshmfc.go_modules.service
glaubitz@suse-laptop:~/suse/home:glaubitz:branches:systemsmanagement:terraform/terraform-provider-google>

This also affects the package terraform-ls but not other packages such as terraform-provider-aws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant