Skip to content

Commit

Permalink
Improvements in the currency automation script (#743)
Browse files Browse the repository at this point in the history
* Updated the currency automation script to accommodate capital letters in the package URL.

* Fixed typo in the httprouter url
  • Loading branch information
nithinputhenveettil authored Apr 24, 2024
1 parent ed4653b commit 6a4946d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion supported_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| 2 | HTTP | [echo](https://pkg.go.dev/github.com/labstack/echo/v4) | [instaecho](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instaecho) | v4.6.0 | v4.12.0 |
| 3 | HTTP | [gin](https://pkg.go.dev/github.com/gin-gonic/gin) | [instagin](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instagin) | v1.7.2 | v1.9.1 |
| 4 | HTTP | [mux](https://pkg.go.dev/github.com/gorilla/mux) | [instamux](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instamux) | v1.8.0 | v1.8.1 |
| 5 | HTTP | [httprouter](http://pkg.go.dev/github.com/julienschmidt/httprouter) | [instahttprouter](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instahttprouter) | v1.3.0 | v1.3.0 |
| 5 | HTTP | [httprouter](https://pkg.go.dev/github.com/julienschmidt/httprouter) | [instahttprouter](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instahttprouter) | v1.3.0 | v1.3.0 |
| 6 | HTTP | [fiber](https://pkg.go.dev/github.com/gofiber/fiber/v2) | [instafiber](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instafiber) | v2.48.0 | v2.52.4 |
| 7 | RPC | [grpc](https://pkg.go.dev/google.golang.org/grpc) | [instagrpc](https://pkg.go.dev/github.com/instana/go-sensor/instrumentation/instagrpc) | v1.15.0 | v1.63.2 |
| 8 | Databases | database/sql | | | |
Expand Down
7 changes: 4 additions & 3 deletions version_updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ find_latest_version() {
if [ -n "$pkg" ]; then
# Query the latest version for the package
local url="https://proxy.golang.org/${pkg}/@latest"
echo $url
curl -s "$url"
LATEST_VERSION=$(curl -s "$url" | jq .Version | tr -d '"')
local url_lower=$(echo "$url" | awk '{ print tolower($0) }')
echo $url_lower
curl -s "$url_lower"
LATEST_VERSION=$(curl -s "$url_lower" | jq .Version | tr -d '"')
else
LATEST_VERSION=""
echo "Invalid package location: $pkg"
Expand Down

0 comments on commit 6a4946d

Please sign in to comment.