Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package version

// DDLambdaVersion is the current version number of this library (datadog-lambda-go).
// It is automatically updated by the release script.
const DDLambdaVersion = "v1.27.0"
const DDLambdaVersion = "1.27.0"

// DDTraceVersion is the version of dd-trace-go required by this libary.
// This should match the version number specified in go.mod.
Expand Down
13 changes: 9 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ fi
if [ -z "$1" ]; then
echo "Must specify a desired version number"
exit 1
elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "Must use a semantic version, e.g., 3.1.4"
exit 1
else
NEW_VERSION=$1
# Remove 'v' prefix if present
CLEAN_VERSION=${1#v}

if [[ ! $CLEAN_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Must use a semantic version, e.g., 3.1.4"
exit 1
else
NEW_VERSION=$CLEAN_VERSION
fi
fi

CURRENT_DD_TRACE_VERSION="$(grep "const DDTraceVersion" internal/version/version.go | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+")"
Expand Down
Loading