The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/scripts/go-workspace/update-workspace.sh

24 lines
455 B

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
pushd "${REPO_ROOT}"
echo "running go work sync"
go work sync
popd
for mod in $(go run scripts/go-workspace/main.go list-submodules --path "${REPO_ROOT}/go.work"); do
pushd "${mod}"
echo "Running go mod tidy in ${mod}"
go mod tidy || true
popd
done
pushd "${REPO_ROOT}"
echo "running go mod download"
go mod download
popd