Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 22, 2024
1 parent f51ed16 commit 48d04f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test:
done

go_mod_tidy:
go get -u && go mod tidy -compat=1.18
go get -u && go mod tidy
set -e; for dir in $(ALL_GO_MOD_DIRS); do \
echo "go mod tidy in $${dir}"; \
(cd "$${dir}" && \
Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \

for dir in $PACKAGE_DIRS
do
printf "${dir}: go mod tidy -compat=1.18\n"
(cd ./${dir} && go mod tidy -compat=1.18)
printf "${dir}: go mod tidy\n"
(cd ./${dir} && go mod tidy)
done


for dir in $PACKAGE_DIRS
do
sed --in-place \
"s/uptrace\/bunrouter\([^ ]*\) v.*/uptrace\/bunrouter\1 ${TAG}/" "${dir}/go.mod"
(cd ./${dir} && go mod tidy -compat=1.18)
(cd ./${dir} && go mod tidy)
done

sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
Expand Down

0 comments on commit 48d04f0

Please sign in to comment.