-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate getting the list of examples to build (and switch to go 1.13…
… to avoid module problems) (#246) * automate building all the examples the EXAMPLES variable was out of date - the stackdriver example wasn't even built let's automate it, so we don't need to remember about updating the variable after adding a new example to the examples directory * move jaeger example to example directory this should be in the examples directory, so it can be built by the make test during CI. * switch to go 1.13 circle ci uses go 1.12 (which is the oldest 1.12 release) that contains some bugs with module handling let's switch to go 1.13.3, the latest go currently * use a single valid revision of the project in go.mod files this probably shouldn't be a problem since the switch to go 1.13 in circle ci, but cleans up the mess and the use of bogus releases
- Loading branch information
Showing
13 changed files
with
377 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module github.com/open-telemetry/opentelemetry-go/example/basic | ||
|
||
go 1.12 | ||
go 1.13 | ||
|
||
replace go.opentelemetry.io => ../.. | ||
|
||
require go.opentelemetry.io v0.0.0-00010101000000-000000000000 | ||
require go.opentelemetry.io v0.0.0-20191025183852-68310ab97435 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module github.com/open-telemetry/opentelemetry-go/example/http | ||
|
||
go 1.12 | ||
go 1.13 | ||
|
||
replace go.opentelemetry.io => ../.. | ||
|
||
require ( | ||
go.opentelemetry.io v0.0.0-00010101000000-000000000000 | ||
go.opentelemetry.io v0.0.0-20191025183852-68310ab97435 | ||
google.golang.org/grpc v1.24.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module go.opentelemetry.io/example/jaeger | ||
|
||
go 1.13 | ||
|
||
replace ( | ||
go.opentelemetry.io => ../.. | ||
go.opentelemetry.io/exporter/trace/jaeger => ../../exporter/trace/jaeger | ||
) | ||
|
||
require ( | ||
go.opentelemetry.io v0.0.0-20191025183852-68310ab97435 | ||
go.opentelemetry.io/exporter/trace/jaeger v0.0.0-20191025183852-68310ab97435 | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module go.opentelemetry.io/example/namedtracer | ||
|
||
go 1.12 | ||
go 1.13 | ||
|
||
replace go.opentelemetry.io => ../.. | ||
|
||
require go.opentelemetry.io v0.0.0-00010101000000-000000000000 | ||
require go.opentelemetry.io v0.0.0-20191025183852-68310ab97435 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
top_dir='.' | ||
if [[ $# -gt 0 ]]; then | ||
top_dir="${1}" | ||
fi | ||
|
||
p=$(pwd) | ||
mod_dirs=() | ||
mapfile -t mod_dirs < <(find "${top_dir}" -type f -name 'go.mod' -exec dirname {} \; | sort) | ||
|
||
for mod_dir in "${mod_dirs[@]}"; do | ||
cd "${mod_dir}" | ||
main_dirs=() | ||
mapfile -t main_dirs < <(go list --find -f '{{.Name}}|{{.Dir}}' ./... | grep '^main|' | cut -f 2- -d '|') | ||
for main_dir in "${main_dirs[@]}"; do | ||
echo ".${main_dir#${p}}" | ||
done | ||
cd "${p}" | ||
done |