mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
put version in binary properly (#73)
Addresses #71 : Set version on the CLI framework. Add a build.sh script that injects variables into the build tooling using git and a version file. Set version in config.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package config
|
||||
|
||||
const softwareVersion = "0.1.0-SNAPSHOT"
|
||||
|
||||
// TestDefault returns a default config for testing
|
||||
func TestDefault() *Config {
|
||||
defaults := GetTestDefaults()
|
||||
@@ -121,7 +119,6 @@ func GetDefaults() Defaults {
|
||||
ConfigPath: "",
|
||||
Host: "",
|
||||
Protocol: "https",
|
||||
SoftwareVersion: softwareVersion,
|
||||
|
||||
DbType: "postgres",
|
||||
DbAddress: "localhost",
|
||||
@@ -168,7 +165,6 @@ func GetTestDefaults() Defaults {
|
||||
ConfigPath: "",
|
||||
Host: "localhost:8080",
|
||||
Protocol: "http",
|
||||
SoftwareVersion: softwareVersion,
|
||||
|
||||
DbType: "postgres",
|
||||
DbAddress: "localhost",
|
||||
|
Reference in New Issue
Block a user