Skip to content

Commit

Permalink
fix: Version should now correctly be reported after build in Vault
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Sep 19, 2023
1 parent 0525407 commit 2d9fdcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend,
b.Backend = &framework.Backend{
BackendType: logical.TypeLogical,
Help: strings.TrimSpace(backendHelp),
RunningVersion: RunningVersion,
RunningVersion: Version,
Invalidate: b.Invalidate,

PathsSpecial: &logical.Paths{
Expand Down
2 changes: 1 addition & 1 deletion backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ func TestBackend(t *testing.T) {
require.True(t, fv.IsNil())
b.SetClient(newInMemoryClient(true))
require.False(t, fv.IsNil())
require.EqualValues(t, gitlab.RunningVersion, b.PluginVersion().Version)
require.EqualValues(t, gitlab.Version, b.PluginVersion().Version)
}
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package gitlab

var RunningVersion string = "v0.0.0-dev"
var Version string = "v0.0.0-dev"
var FullCommit string
var BuildDate string

0 comments on commit 2d9fdcc

Please sign in to comment.