diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index f730a19cb8f..a3db51e58d8 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -18,7 +18,7 @@ set -o errexit set -o nounset set -o pipefail -source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/library.sh +source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/library.sh # generate the code with: # --output-base because this script should also be able to run inside the vendor dir of diff --git a/hack/update-deps.sh b/hack/update-deps.sh index 3fbe4ec98d8..3576f2b173d 100755 --- a/hack/update-deps.sh +++ b/hack/update-deps.sh @@ -18,7 +18,7 @@ set -o errexit set -o nounset set -o pipefail -source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/library.sh +source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/library.sh cd ${REPO_ROOT_DIR} diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index 969c2794db8..ae3037cd970 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -18,7 +18,7 @@ set -o errexit set -o nounset set -o pipefail -source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/library.sh +source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/library.sh readonly TMP_DIFFROOT="$(mktemp -d ${REPO_ROOT_DIR}/tmpdiffroot.XXXXXX)" diff --git a/test/e2e-common.sh b/test/e2e-common.sh index edbf6d3e7f0..897f0a8f33f 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -16,7 +16,7 @@ # Helper functions for E2E tests. -source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/e2e-tests.sh +source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/e2e-tests.sh function teardown() { subheader "Tearing down Tekton Pipelines" diff --git a/test/e2e-tests-upgrade.sh b/test/e2e-tests-upgrade.sh index 56e9b320f2c..cce0c60bd89 100755 --- a/test/e2e-tests-upgrade.sh +++ b/test/e2e-tests-upgrade.sh @@ -24,7 +24,7 @@ # Scenario 2: install the previous release, create the pipelines and tasks, upgrade # to the current release, and validate whether the Tekton pipeline works. -source $(dirname $0)/e2e-common.sh +source $(git rev-parse --show-toplevel)/test/e2e-common.sh PREVIOUS_PIPELINE_VERSION=v0.5.2 # Script entry point. diff --git a/test/e2e-tests-yaml.sh b/test/e2e-tests-yaml.sh index 6fd160b2d5e..064be59e4fd 100755 --- a/test/e2e-tests-yaml.sh +++ b/test/e2e-tests-yaml.sh @@ -17,8 +17,7 @@ # This script calls out to scripts in tektoncd/plumbing to setup a cluster # and deploy Tekton Pipelines to it for running integration tests. -go get -d github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher/cmd/gcs-fetcher -source $(dirname $0)/e2e-common.sh +source $(git rev-parse --show-toplevel)/test/e2e-common.sh # Script entry point. diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index ac249899bbe..e9ef0e877f6 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -17,7 +17,7 @@ # This script calls out to scripts in tektoncd/plumbing to setup a cluster # and deploy Tekton Pipelines to it for running integration tests. -source $(dirname $0)/e2e-common.sh +source $(git rev-parse --show-toplevel)/test/e2e-common.sh # Script entry point. diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index 77435e52bcf..2042ab57201 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -26,7 +26,7 @@ export DISABLE_MD_LINTING=1 export DISABLE_MD_LINK_CHECK=1 -source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/presubmit-tests.sh +source $(git rev-parse --show-toplevel)/vendor/github.com/tektoncd/plumbing/scripts/presubmit-tests.sh function post_build_tests() { header "running golangci-lint"