Merge pull request #2575 from owncloud/buildtimeversion
fix extensions versions
This commit is contained in:
54 files changed
+51
-287
No files matched your search
+4
-3
@@ -1,4 +1,5 @@
|
|||||||
IMPORT := github.com/owncloud/ocis/$(NAME)
|
OCIS_REPO := github.com/owncloud/ocis
|
||||||
|
IMPORT := ($OCIS_REPO)/$(NAME)
|
||||||
BIN := bin
|
BIN := bin
|
||||||
DIST := dist
|
DIST := dist
|
||||||
|
|
||||||
@@ -40,8 +41,8 @@ ifndef DATE
|
|||||||
DATE := $(shell date -u '+%Y%m%d')
|
DATE := $(shell date -u '+%Y%m%d')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "$(OCIS_REPO)/ocis-pkg/version.String=$(VERSION)" -X "$(OCIS_REPO)/ocis-pkg/version.Date=$(DATE)"
|
||||||
DEBUG_LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
DEBUG_LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -X "$(OCIS_REPO)/ocis-pkg/version.String=$(VERSION)" -X "$(OCIS_REPO)/ocis-pkg/version.Date=$(DATE)"
|
||||||
|
|
||||||
GCFLAGS += all=-N -l
|
GCFLAGS += all=-N -l
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/version"
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/assets"
|
"github.com/owncloud/ocis/accounts/pkg/assets"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/account"
|
"github.com/owncloud/ocis/ocis-pkg/account"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Bugfix: Fix version information for extensions
|
||||||
|
|
||||||
|
We've fixed the behavior for `ocis version` which previously always showed `0.0.0` as
|
||||||
|
version for extensions. Now the real version of the extensions are shown.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/2575
|
||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
"github.com/owncloud/ocis/glauth/pkg/config"
|
"github.com/owncloud/ocis/glauth/pkg/config"
|
||||||
"github.com/owncloud/ocis/glauth/pkg/flagset"
|
"github.com/owncloud/ocis/glauth/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/glauth/pkg/version"
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/glauth/pkg/config"
|
"github.com/owncloud/ocis/glauth/pkg/config"
|
||||||
"github.com/owncloud/ocis/glauth/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/flagset"
|
"github.com/owncloud/ocis/graph-explorer/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/version"
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"github.com/asim/go-micro/v3"
|
"github.com/asim/go-micro/v3"
|
||||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||||
svc "github.com/owncloud/ocis/graph-explorer/pkg/service/v0"
|
svc "github.com/owncloud/ocis/graph-explorer/pkg/service/v0"
|
||||||
"github.com/owncloud/ocis/graph-explorer/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
"github.com/owncloud/ocis/graph/pkg/config"
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
"github.com/owncloud/ocis/graph/pkg/flagset"
|
"github.com/owncloud/ocis/graph/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/graph/pkg/version"
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/graph/pkg/config"
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
"github.com/owncloud/ocis/graph/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||||
graphMiddleware "github.com/owncloud/ocis/graph/pkg/middleware"
|
graphMiddleware "github.com/owncloud/ocis/graph/pkg/middleware"
|
||||||
svc "github.com/owncloud/ocis/graph/pkg/service/v0"
|
svc "github.com/owncloud/ocis/graph/pkg/service/v0"
|
||||||
"github.com/owncloud/ocis/graph/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/account"
|
"github.com/owncloud/ocis/ocis-pkg/account"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
"github.com/owncloud/ocis/idp/pkg/config"
|
"github.com/owncloud/ocis/idp/pkg/config"
|
||||||
"github.com/owncloud/ocis/idp/pkg/flagset"
|
"github.com/owncloud/ocis/idp/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/idp/pkg/version"
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
File renamed without changes.
@@ -8,8 +8,8 @@ import (
|
|||||||
svcconfig "github.com/owncloud/ocis/accounts/pkg/config"
|
svcconfig "github.com/owncloud/ocis/accounts/pkg/config"
|
||||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
svcconfig "github.com/owncloud/ocis/glauth/pkg/config"
|
svcconfig "github.com/owncloud/ocis/glauth/pkg/config"
|
||||||
"github.com/owncloud/ocis/glauth/pkg/flagset"
|
"github.com/owncloud/ocis/glauth/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
svcconfig "github.com/owncloud/ocis/idp/pkg/config"
|
svcconfig "github.com/owncloud/ocis/idp/pkg/config"
|
||||||
"github.com/owncloud/ocis/idp/pkg/flagset"
|
"github.com/owncloud/ocis/idp/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/ocs/pkg/command"
|
"github.com/owncloud/ocis/ocs/pkg/command"
|
||||||
svcconfig "github.com/owncloud/ocis/ocs/pkg/config"
|
svcconfig "github.com/owncloud/ocis/ocs/pkg/config"
|
||||||
"github.com/owncloud/ocis/ocs/pkg/flagset"
|
"github.com/owncloud/ocis/ocs/pkg/flagset"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/proxy/pkg/command"
|
"github.com/owncloud/ocis/proxy/pkg/command"
|
||||||
svcconfig "github.com/owncloud/ocis/proxy/pkg/config"
|
svcconfig "github.com/owncloud/ocis/proxy/pkg/config"
|
||||||
"github.com/owncloud/ocis/proxy/pkg/flagset"
|
"github.com/owncloud/ocis/proxy/pkg/flagset"
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/flagset"
|
"github.com/owncloud/ocis/ocis/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/settings/pkg/command"
|
"github.com/owncloud/ocis/settings/pkg/command"
|
||||||
svcconfig "github.com/owncloud/ocis/settings/pkg/config"
|
svcconfig "github.com/owncloud/ocis/settings/pkg/config"
|
||||||
"github.com/owncloud/ocis/settings/pkg/flagset"
|
"github.com/owncloud/ocis/settings/pkg/flagset"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/store/pkg/command"
|
"github.com/owncloud/ocis/store/pkg/command"
|
||||||
svcconfig "github.com/owncloud/ocis/store/pkg/config"
|
svcconfig "github.com/owncloud/ocis/store/pkg/config"
|
||||||
"github.com/owncloud/ocis/store/pkg/flagset"
|
"github.com/owncloud/ocis/store/pkg/flagset"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/command"
|
"github.com/owncloud/ocis/thumbnails/pkg/command"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/flagset"
|
"github.com/owncloud/ocis/thumbnails/pkg/flagset"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||||
"github.com/owncloud/ocis/ocis/pkg/version"
|
|
||||||
"github.com/owncloud/ocis/webdav/pkg/command"
|
"github.com/owncloud/ocis/webdav/pkg/command"
|
||||||
svcconfig "github.com/owncloud/ocis/webdav/pkg/config"
|
svcconfig "github.com/owncloud/ocis/webdav/pkg/config"
|
||||||
"github.com/owncloud/ocis/webdav/pkg/flagset"
|
"github.com/owncloud/ocis/webdav/pkg/flagset"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/ocs/pkg/config"
|
"github.com/owncloud/ocis/ocs/pkg/config"
|
||||||
"github.com/owncloud/ocis/ocs/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/proxy/pkg/config"
|
"github.com/owncloud/ocis/proxy/pkg/config"
|
||||||
"github.com/owncloud/ocis/proxy/pkg/flagset"
|
"github.com/owncloud/ocis/proxy/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/proxy/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/settings/pkg/config"
|
"github.com/owncloud/ocis/settings/pkg/config"
|
||||||
"github.com/owncloud/ocis/settings/pkg/flagset"
|
"github.com/owncloud/ocis/settings/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/settings/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/settings/pkg/config"
|
"github.com/owncloud/ocis/settings/pkg/config"
|
||||||
"github.com/owncloud/ocis/settings/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"github.com/owncloud/ocis/ocis-pkg/account"
|
"github.com/owncloud/ocis/ocis-pkg/account"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/settings/pkg/assets"
|
"github.com/owncloud/ocis/settings/pkg/assets"
|
||||||
"github.com/owncloud/ocis/settings/pkg/proto/v0"
|
"github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||||
svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||||
"github.com/owncloud/ocis/settings/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -13,6 +13,7 @@ import (
|
|||||||
"github.com/owncloud/ocis/storage/pkg/tracing"
|
"github.com/owncloud/ocis/storage/pkg/tracing"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
|
|
||||||
"github.com/cs3org/reva/cmd/revad/runtime"
|
"github.com/cs3org/reva/cmd/revad/runtime"
|
||||||
"github.com/gofrs/uuid"
|
"github.com/gofrs/uuid"
|
||||||
@@ -64,6 +65,7 @@ func Gateway(cfg *config.Config) *cli.Command {
|
|||||||
"com.owncloud.storage",
|
"com.owncloud.storage",
|
||||||
uuid.String(),
|
uuid.String(),
|
||||||
cfg.Reva.Gateway.GRPCAddr,
|
cfg.Reva.Gateway.GRPCAddr,
|
||||||
|
version.String,
|
||||||
logger,
|
logger,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/storage/pkg/config"
|
"github.com/owncloud/ocis/storage/pkg/config"
|
||||||
"github.com/owncloud/ocis/storage/pkg/flagset"
|
"github.com/owncloud/ocis/storage/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/storage/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
"github.com/gofrs/uuid"
|
"github.com/gofrs/uuid"
|
||||||
"github.com/oklog/run"
|
"github.com/oklog/run"
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/storage/pkg/config"
|
"github.com/owncloud/ocis/storage/pkg/config"
|
||||||
"github.com/owncloud/ocis/storage/pkg/flagset"
|
"github.com/owncloud/ocis/storage/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/storage/pkg/server/debug"
|
"github.com/owncloud/ocis/storage/pkg/server/debug"
|
||||||
@@ -124,6 +125,7 @@ func StorageMetadata(cfg *config.Config) *cli.Command {
|
|||||||
"com.owncloud.storage.metadata",
|
"com.owncloud.storage.metadata",
|
||||||
uuid.Must(uuid.NewV4()).String(),
|
uuid.Must(uuid.NewV4()).String(),
|
||||||
cfg.Reva.StorageMetadata.GRPCAddr,
|
cfg.Reva.StorageMetadata.GRPCAddr,
|
||||||
|
version.String,
|
||||||
logger,
|
logger,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
logger.Fatal().Err(err).Msg("failed to register the grpc endpoint")
|
logger.Fatal().Err(err).Msg("failed to register the grpc endpoint")
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/storage/pkg/config"
|
"github.com/owncloud/ocis/storage/pkg/config"
|
||||||
"github.com/owncloud/ocis/storage/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
+2
-2
@@ -13,7 +13,7 @@ import (
|
|||||||
// RegisterGRPCEndpoint publishes an arbitrary endpoint to the service-registry. This allows to query nodes of
|
// RegisterGRPCEndpoint publishes an arbitrary endpoint to the service-registry. This allows to query nodes of
|
||||||
// non-micro GRPC-services like reva. No health-checks are done, thus the caller is responsible for canceling.
|
// non-micro GRPC-services like reva. No health-checks are done, thus the caller is responsible for canceling.
|
||||||
//
|
//
|
||||||
func RegisterGRPCEndpoint(ctx context.Context, serviceID, uuid, addr string, logger log.Logger) error {
|
func RegisterGRPCEndpoint(ctx context.Context, serviceID, uuid, addr string, version string, logger log.Logger) error {
|
||||||
node := ®istry.Node{
|
node := ®istry.Node{
|
||||||
Id: serviceID + "-" + uuid,
|
Id: serviceID + "-" + uuid,
|
||||||
Address: addr,
|
Address: addr,
|
||||||
@@ -29,7 +29,7 @@ func RegisterGRPCEndpoint(ctx context.Context, serviceID, uuid, addr string, log
|
|||||||
|
|
||||||
service := ®istry.Service{
|
service := ®istry.Service{
|
||||||
Name: serviceID,
|
Name: serviceID,
|
||||||
Version: "",
|
Version: version,
|
||||||
Nodes: []*registry.Node{node},
|
Nodes: []*registry.Node{node},
|
||||||
Endpoints: make([]*registry.Endpoint, 0),
|
Endpoints: make([]*registry.Endpoint, 0),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/store/pkg/config"
|
"github.com/owncloud/ocis/store/pkg/config"
|
||||||
"github.com/owncloud/ocis/store/pkg/flagset"
|
"github.com/owncloud/ocis/store/pkg/flagset"
|
||||||
"github.com/owncloud/ocis/store/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/config"
|
"github.com/owncloud/ocis/thumbnails/pkg/config"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ package grpc
|
|||||||
import (
|
import (
|
||||||
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
|
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/proto/v0"
|
"github.com/owncloud/ocis/thumbnails/pkg/proto/v0"
|
||||||
svc "github.com/owncloud/ocis/thumbnails/pkg/service/v0"
|
svc "github.com/owncloud/ocis/thumbnails/pkg/service/v0"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/thumbnail/imgsource"
|
"github.com/owncloud/ocis/thumbnails/pkg/thumbnail/imgsource"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/thumbnail/storage"
|
"github.com/owncloud/ocis/thumbnails/pkg/thumbnail/storage"
|
||||||
"github.com/owncloud/ocis/thumbnails/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewService initializes the grpc service and server.
|
// NewService initializes the grpc service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/web/pkg/config"
|
"github.com/owncloud/ocis/web/pkg/config"
|
||||||
"github.com/owncloud/ocis/web/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
"github.com/owncloud/ocis/ocis-pkg/service/debug"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/web/pkg/config"
|
"github.com/owncloud/ocis/web/pkg/config"
|
||||||
"github.com/owncloud/ocis/web/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
webmid "github.com/owncloud/ocis/web/pkg/middleware"
|
webmid "github.com/owncloud/ocis/web/pkg/middleware"
|
||||||
svc "github.com/owncloud/ocis/web/pkg/service/v0"
|
svc "github.com/owncloud/ocis/web/pkg/service/v0"
|
||||||
"github.com/owncloud/ocis/web/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
|
||||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||||
|
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/webdav/pkg/config"
|
"github.com/owncloud/ocis/webdav/pkg/config"
|
||||||
"github.com/owncloud/ocis/webdav/pkg/version"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thejerf/suture/v4"
|
"github.com/thejerf/suture/v4"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
package version
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
// String gets defined by the build system.
|
|
||||||
String = "0.0.0"
|
|
||||||
|
|
||||||
// Date indicates the build date.
|
|
||||||
Date = "00000000"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Compiled returns the compile time of this service.
|
|
||||||
func Compiled() time.Time {
|
|
||||||
t, _ := time.Parse("20060102", Date)
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user