Skip to content

Commit

Permalink
Migrate metadata pkg into common pkg
Browse files Browse the repository at this point in the history
It should be a simple common pkg, as only be used in few places.

Change-Id: If5b03f2ae46bd52b4cad6cb92513bcbd5682e319
Signed-off-by: Baohua Yang <baohyang@cn.ibm.com>
  • Loading branch information
yeasy committed Dec 19, 2016
1 parent 0eadb03 commit 153a57a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PROJECT_VERSION=$(BASE_VERSION)
endif

PKGNAME = github.com/$(PROJECT_NAME)
GO_LDFLAGS = -X $(PKGNAME)/metadata.Version=$(PROJECT_VERSION)
GO_LDFLAGS = -X $(PKGNAME)/common/metadata.Version=$(PROJECT_VERSION)
CGO_FLAGS = CGO_CFLAGS=" "
ARCH=$(shell uname -m)
CHAINTOOL_RELEASE=v0.10.0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/container/util/dockerutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strings"

"github.com/fsouza/go-dockerclient"
"github.com/hyperledger/fabric/metadata"
"github.com/hyperledger/fabric/common/metadata"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion core/container/util/dockerutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package util
import (
"testing"

"github.com/hyperledger/fabric/metadata"
"github.com/hyperledger/fabric/common/metadata"
)

func TestUtil_DockerfileTemplateParser(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion peer/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package version
import (
"fmt"

"github.com/hyperledger/fabric/metadata"
"github.com/hyperledger/fabric/common/metadata"
"github.com/spf13/cobra"
)

Expand Down

0 comments on commit 153a57a

Please sign in to comment.