rob05c commented on a change in pull request #3023: WIP Supported routes fetch
URL: https://github.com/apache/trafficcontrol/pull/3023#discussion_r233220891
##########
File path: traffic_ops/traffic_ops_golang/traffic_ops_golang.go
##########
@@ -46,6 +46,9 @@ import (
// set the version at build time: `go build -X "main.version=..."`
var version = "development"
+// Traffic Ops version, set before building
+const Version = "3.0.0"
Review comment:
If you want to see that in your dev builds, you can always build with `go
build -ldflags "-X main.version=traffic_ops-$(cat ../../VERSION)"`
```
$ go build -ldflags "-X main.version=traffic_ops-$(cat ../../VERSION)"
$ ./traffic_ops_golang -version
traffic_ops-3.0.0
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services