GetMeta returns version metadata about the current build.
()
| 327 | |
| 328 | // GetMeta returns version metadata about the current build. |
| 329 | func GetMeta() Meta { |
| 330 | return getMeta.Get(func() Meta { |
| 331 | return Meta{ |
| 332 | MajorMinorPatch: majorMinorPatch(), |
| 333 | Short: Short(), |
| 334 | Long: Long(), |
| 335 | GitCommitTime: getEmbeddedInfo().commitTime, |
| 336 | GitCommit: gitCommit(), |
| 337 | GitDirty: gitDirty(), |
| 338 | OSVariant: osVariant(), |
| 339 | ExtraGitCommit: extraGitCommitStamp, |
| 340 | IsDev: isDev(), |
| 341 | UnstableBranch: IsUnstableBuild(), |
| 342 | TailscaleGoGitHash: tailscaleToolchainRev(), |
| 343 | Cap: int(tailcfg.CurrentCapabilityVersion), |
| 344 | } |
| 345 | }) |
| 346 | } |
no test coverage detected
searching dependent graphs…