Skip to content

Commit

Permalink
build: auto-update driver version user-agent (#340)
Browse files Browse the repository at this point in the history
Adds configuration to release-please to automatically update the
user-agent header version number when a new release is cut.

Fixes #277
  • Loading branch information
olavloite authored Jan 15, 2025
1 parent 1b71476 commit 255d8e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
"google.golang.org/protobuf/reflect/protoreflect"
)

const userAgent = "go-sql-spanner/1.0.2"
const userAgent = "go-sql-spanner/1.9.0" // x-release-please-version

// dsnRegExpString describes the valid values for a dsn (connection name) for
// Google Cloud Spanner. The string consists of the following parts:
Expand Down
5 changes: 4 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"component": "main"
}
},
"plugins": ["sentence-case"]
"plugins": ["sentence-case"],
"extra-files": [
"driver.go"
]
}

0 comments on commit 255d8e0

Please sign in to comment.