You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add file version for Windows binary
* fix gopath
* use gobin instead of gopath
* update readme
* templates cannot use variables
* trying to debug path issue
* still debugging path
* use binariesdir for gobin
* put go-winres in sources dir
Copy file name to clipboardExpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,17 @@ pkg/sqlcmd is consumable by other hosts. Go docs for the package are forthcoming
101
101
102
102
## Building
103
103
104
+
To add version data to your build using `go-winres`, add `GOBIN` to your `PATH` then use `go generate`
105
+
The version on the binary will match the version tag of the branch.
106
+
107
+
```sh
108
+
109
+
go install https://github.com/tc-hib/go-winres
110
+
cd cmd/sqlcmd
111
+
go generate
112
+
113
+
```
114
+
104
115
Scripts to build the binaries and package them for release will be added in a build folder off the root. We will also add Azure Devops pipeline yml files there to initiate builds and releases. Until then just use `go build ./cmd/sqlcmd` to create a sqlcmd binary.
0 commit comments