Migrate frontend to pnpm+parcel with JS modules
This commit is contained in:
parent
4d8b7d6e62
commit
0b8fbea6c3
30 changed files with 2289 additions and 404 deletions
15
helpers/version.go
Normal file
15
helpers/version.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package helpers
|
||||
|
||||
import "runtime/debug"
|
||||
|
||||
func GetVCSRevision() string {
|
||||
if info, ok := debug.ReadBuildInfo(); ok {
|
||||
for _, setting := range info.Settings {
|
||||
if setting.Key == "vcs.revision" {
|
||||
return setting.Value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return "unknown"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue