Skip to content

Commit

Permalink
update help and usage. exclude current submodule in output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Aug 22, 2024
1 parent 7a0d3ca commit 2ae8013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion build-support/functions/10-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ function get_consul_module_versions {
-e github.com/hashicorp/consul/envoyextensions \
-e github.com/hashicorp/consul/proto-public \
-e github.com/hashicorp/consul/sdk \
-e github.com/hashicorp/consul/troubleshoot)
-e github.com/hashicorp/consul/troubleshoot \
| if [ "$module_dir" != "." ]; then grep -v "consul/$module_dir"; else cat; fi)
echo "--------------"
echo ""
done
Expand Down
10 changes: 1 addition & 9 deletions build-support/scripts/consul-module-versions-in-consul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ Usage: ${SCRIPT_NAME} [<options ...>]
Description:
This script is just a convenience around discover what the Consul
version would be if you were to build it.
This script reports the consul module versions in each of the go.mod files in the Consul repository.
Options:
-s | --source DIR Path to source to build.
Defaults to "${SOURCE_DIR}"
-r | --release Include the release in the version
-g | --git Take git variables into account
-h | --help Print this help text.
EOF
}
Expand Down

0 comments on commit 2ae8013

Please sign in to comment.