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

suggestion: Use the version of thanos release instead of the dev version #15

Open
liuzel01 opened this issue Aug 16, 2023 · 0 comments
Open

Comments

@liuzel01
Copy link

there is my dev env:

os-version: 
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.3 LTS
    Release:        22.04
    Codename:       jammy
golang: 
    2:1.18~0ubuntu2
docker: 
    Docker version 24.0.5, build ced0996
docker-compose: 
    Docker Compose version v2.18.1
make: 
    GNU Make 4.3
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2020 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

When I git clone the repo, and run the command: make up,
there occurred some errors:

[go.opentelemetry.io/otel/sdk/trace](http://go.opentelemetry.io/otel/sdk/trace)
/root/go/pkg/mod/[go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:78:24](http://go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:78:24): undefined: atomic.Pointer
/root/go/pkg/mod/[go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:80:20](http://go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:80:20): undefined: atomic.Bool
note: module requires Go 1.19
!! command failed: build -o /root/go/bin/thanos -ldflags -X [github.com/prometheus/common/version.Version=0.32.0-dev](http://github.com/prometheus/common/version.Version=0.32.0-dev) -X [github.com/prometheus/common/version.Revision=266a76018aa39d104833095e00c1954a24ec3873](http://github.com/prometheus/common/version.Revision=266a76018aa39d104833095e00c1954a24ec3873) -X [github.com/prometheus/common/version.Branch=main](http://github.com/prometheus/common/version.Branch=main) -X [github.com/prometheus/common/version.BuildUser=root@seeds-uat-svc](http://github.com/prometheus/common/version.BuildUser=root@seeds-uat-svc) -X [github.com/prometheus/common/version.BuildDate=20230815-07:53:15](http://github.com/prometheus/common/version.BuildDate=20230815-07:53:15) -extldflags '-static' -a -tags netgo [github.com/thanos-io/thanos/cmd/thanos](http://github.com/thanos-io/thanos/cmd/thanos): exit status 2
make[1]: *** [Makefile:154: build] Error 1
make[1]: Leaving directory '/home/jenkins/github/thanos'
make: *** [Makefile:18: /root/go/bin/thanos] Error 2

I found that the env requirements of thanos after the thanos source code builted like this:

image

but when I went to the thanos repo and saw that in the file go.mod, the required version is:

go 1.18

So i'm confused, why the required go version is not consistent after using the source package 😢

  • And, could you use the version of thanos release instead of packaging it from the thanos source code?
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