Skip to content

Commit 3e96c2b

Browse files
committed
Stop using hidden directory for build
Now that we no longer dump a bunch of goo into our .build directory, we can go back to using the more standard "build" directory. FAB-16647 #done Change-Id: I9ac582e9601565b609789c78cb7282c65eeaf115 Signed-off-by: Matthew Sykes <[email protected]>
1 parent ea733c3 commit 3e96c2b

File tree

10 files changed

+29
-47
lines changed

10 files changed

+29
-47
lines changed

.gitignore

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,27 @@
11
#SPDX-License-Identifier: Apache-2.0
2-
3-
# Local build binaries
4-
node-cli/node-cli
5-
*.pyc
6-
/bin
7-
docs/build/*
8-
.idea
9-
*.iml
10-
.DS_Store
11-
tags
12-
.tags
13-
.vagrant/
14-
/.build
15-
build/
16-
/release/darwin-amd64
17-
/release/linux-amd64
18-
/release/linux-s390x
19-
/release/linux-ppc64le
20-
/release/windows-amd64
21-
# Emacs backup files
2+
.#*
223
*~
234
*#
24-
.#*
25-
# Vim file artifacts
26-
.*.sw*
27-
# Makefile dummy artifacts
5+
/bin
6+
/build
7+
/.build
8+
*.cov
9+
/docs/build/*
10+
.DS_Store
2811
.*-dummy
29-
# log files
12+
.gradle
13+
.idea
14+
*.iml
3015
*.log
31-
# code coverage
32-
*.cov
33-
go-carpet-coverage*
34-
# Test result xml files
16+
.project
17+
/release
3518
report.xml
3619
results.xml
37-
TESTS*.xml
3820
.settings
39-
.project
40-
.gradle
41-
bin/
42-
# tox
21+
.*.sw*
22+
tags
23+
.tags
24+
TESTS*.xml
4325
.tox/
44-
# vscode settings
26+
.vagrant/
4527
.vscode
46-
maven_data.xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ COUCHDB_VER ?= 2.3
5454
.SUFFIXES:
5555
MAKEFLAGS += --no-builtin-rules
5656

57-
BUILD_DIR ?= .build
57+
BUILD_DIR ?= build
5858
NEXUS_REPO = nexus3.hyperledger.org:10001/hyperledger
5959

6060
EXTRA_VERSION ?= $(shell git rev-parse --short HEAD)

images/orderer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FROM base
2525
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
2626
VOLUME /etc/hyperledger/fabric
2727
VOLUME /var/hyperledger
28-
COPY --from=orderer /go/src/github.com/hyperledger/fabric/.build/bin /usr/local/bin
28+
COPY --from=orderer /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin
2929
COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/msp ${FABRIC_CFG_PATH}/msp
3030
COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/orderer.yaml ${FABRIC_CFG_PATH}
3131
COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/configtx.yaml ${FABRIC_CFG_PATH}

images/peer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FROM peer-base
2626
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
2727
VOLUME /etc/hyperledger/fabric
2828
VOLUME /var/hyperledger
29-
COPY --from=peer /go/src/github.com/hyperledger/fabric/.build/bin /usr/local/bin
29+
COPY --from=peer /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin
3030
COPY --from=peer /go/src/github.com/hyperledger/fabric/sampleconfig/msp ${FABRIC_CFG_PATH}/msp
3131
COPY --from=peer /go/src/github.com/hyperledger/fabric/sampleconfig/core.yaml ${FABRIC_CFG_PATH}
3232
EXPOSE 7051

images/tools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ RUN apk add --no-cache \
2828
tzdata;
2929
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
3030
VOLUME /etc/hyperledger/fabric
31-
COPY --from=tools /go/src/github.com/hyperledger/fabric/.build/bin /usr/local/bin
31+
COPY --from=tools /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin
3232
COPY --from=tools /go/src/github.com/hyperledger/fabric/sampleconfig ${FABRIC_CFG_PATH}

scripts/compile_protos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -eux -o pipefail
1010
# Find all proto dirs to be processed
1111
PROTO_DIRS="$(find "$(pwd)" \
1212
-path "$(pwd)/vendor" -prune -o \
13-
-path "$(pwd)/.build" -prune -o \
13+
-path "$(pwd)/build" -prune -o \
1414
-name '*.proto' -print0 | \
1515
xargs -0 -n 1 dirname | \
1616
sort -u | grep -v testdata)"

scripts/functions.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ function filterExcludedAndGeneratedFiles {
99
excluded_files=(
1010
'\.block$'
1111
'^\.build/'
12+
'^build/'
1213
'(^|/)ci\.properties$'
1314
'(^|/)\.git/'
1415
'\.gen\.go$'
1516
'(^|/)go.mod$'
1617
'(^|/)go.sum$'
1718
'(^|/)Gopkg\.lock$'
19+
'\.json$'
1820
'\.key$'
1921
'(^|/)LICENSE$'
2022
'\.md$'
@@ -28,7 +30,6 @@ function filterExcludedAndGeneratedFiles {
2830
'\.txt$'
2931
'(^|/)testdata\/'
3032
'(^|/)vendor\/'
31-
'\.json$'
3233
'(^|/)Pipfile$'
3334
'(^|/)Pipfile\.lock$'
3435
)

scripts/generateHelpDocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66
#
7-
PATH=.build/bin/:${PATH}
7+
PATH=build/bin/:${PATH}
88

99
# Takes in 4 arguments
1010
# 1. Output doc file

scripts/golinter.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ source "$(cd "$(dirname "$0")" && pwd)/functions.sh"
1111

1212
# place the Go build cache directory into the default build tree if it exists
1313
base_dir="$(cd "$(dirname "$0")/.." && pwd)"
14-
if [ -d "${base_dir}/.build" ]; then
15-
export GOCACHE="${base_dir}/.build/go-cache"
14+
if [ -d "${base_dir}/build" ]; then
15+
export GOCACHE="${base_dir}/build/go-cache"
1616
fi
1717

1818
fabric_dir="$(cd "$(dirname "$0")/.." && pwd)"

scripts/run-unit-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ run_tests_with_coverage() {
176176

177177
main() {
178178
# place the cache directory into the default build tree if it exists
179-
if [ -d "${base_dir}/.build" ]; then
180-
export GOCACHE="${base_dir}/.build/go-cache"
179+
if [ -d "${base_dir}/build" ]; then
180+
export GOCACHE="${base_dir}/build/go-cache"
181181
fi
182182

183183
# explicit exclusions for ppc and s390x

0 commit comments

Comments
 (0)