diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa81db5e90..ff6f732d32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-versions: ['1.23', '1.22'] + go-versions: ['1.22'] platform: [ubuntu-22.04] environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh] runs-on: ${{ matrix.platform }} @@ -31,7 +31,7 @@ jobs: test-integration: strategy: matrix: - go-versions: ['1.23', '1.22'] + go-versions: ['1.22'] platform: [ubuntu-22.04] environment-variables: [build/config/plain.sh, build/config/libpfm4.sh, build/config/libipmctl.sh] runs-on: ${{ matrix.platform }} diff --git a/utils/cloudinfo/gce/gce.go b/utils/cloudinfo/gce/gce.go index ee0786194e..d717cd6c1c 100644 --- a/utils/cloudinfo/gce/gce.go +++ b/utils/cloudinfo/gce/gce.go @@ -15,6 +15,7 @@ package gce import ( + "context" "os" "strings" @@ -48,7 +49,7 @@ func (provider) IsActiveProvider() bool { } func (provider) GetInstanceType() info.InstanceType { - machineType, err := metadata.Get("instance/machine-type") + machineType, err := metadata.GetWithContext(context.TODO(), "instance/machine-type") if err != nil { return info.UnknownInstance } @@ -58,7 +59,7 @@ func (provider) GetInstanceType() info.InstanceType { } func (provider) GetInstanceID() info.InstanceID { - instanceID, err := metadata.Get("instance/id") + instanceID, err := metadata.GetWithContext(context.TODO(), "instance/id") if err != nil { return info.UnknownInstance }