Skip to content

Commit 153a57a

Browse files
committed
Migrate metadata pkg into common pkg
It should be a simple common pkg, as only be used in few places. Change-Id: If5b03f2ae46bd52b4cad6cb92513bcbd5682e319 Signed-off-by: Baohua Yang <[email protected]>
1 parent 0eadb03 commit 153a57a

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PROJECT_VERSION=$(BASE_VERSION)
4747
endif
4848

4949
PKGNAME = github.com/$(PROJECT_NAME)
50-
GO_LDFLAGS = -X $(PKGNAME)/metadata.Version=$(PROJECT_VERSION)
50+
GO_LDFLAGS = -X $(PKGNAME)/common/metadata.Version=$(PROJECT_VERSION)
5151
CGO_FLAGS = CGO_CFLAGS=" "
5252
ARCH=$(shell uname -m)
5353
CHAINTOOL_RELEASE=v0.10.0
File renamed without changes.

core/container/util/dockerutil.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222

2323
"github.com/fsouza/go-dockerclient"
24-
"github.com/hyperledger/fabric/metadata"
24+
"github.com/hyperledger/fabric/common/metadata"
2525
"github.com/spf13/viper"
2626
)
2727

core/container/util/dockerutil_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package util
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/metadata"
22+
"github.com/hyperledger/fabric/common/metadata"
2323
)
2424

2525
func TestUtil_DockerfileTemplateParser(t *testing.T) {

peer/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package version
1919
import (
2020
"fmt"
2121

22-
"github.com/hyperledger/fabric/metadata"
22+
"github.com/hyperledger/fabric/common/metadata"
2323
"github.com/spf13/cobra"
2424
)
2525

0 commit comments

Comments
 (0)