github.com/prebid/prebid-server/v2@v2.18.0/version/version.go (about)

     1  package version
     2  
     3  // Ver holds the version derived from the latest git tag
     4  // Populated using:
     5  //
     6  //	go build -ldflags "-X github.com/prebid/prebid-server/version.Ver=`git describe --tags | sed 's/^v//`"
     7  //
     8  // Populated automatically at build / releases in the Docker image
     9  var Ver string
    10  
    11  // VerUnknown is the version used if Ver has not been set by ldflags.
    12  const VerUnknown = "unknown"
    13  
    14  // Rev holds binary revision string
    15  // Populated using:
    16  //
    17  //	go build -ldflags "-X github.com/prebid/prebid-server/version.Rev=`git rev-parse --short HEAD`"
    18  //
    19  // Populated automatically at build / releases in the Docker image
    20  // See issue #559
    21  var Rev string