forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Simplify contribution / Usage (open-telemetry#6975)
Looking to reduce contribution toil and reducing onboarding efforts, this removes any additional once of steps that could cause issues with tooling versioning mismatches.
- Loading branch information
1 parent
5358eb9
commit 4f5412e
Showing
7 changed files
with
11 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,13 +168,9 @@ $ git remote add fork [email protected]:YOUR_GITHUB_USERNAME/opentelemetry-collecto | |
Run tests, fmt and lint: | ||
|
||
```shell | ||
$ make install-tools # Only first time. | ||
$ make | ||
``` | ||
|
||
*Note:* the default build target requires tools that are installed at `$(go env | ||
GOPATH)/bin`, ensure that `$(go env GOPATH)/bin` is included in your `PATH`. | ||
|
||
## Creating a PR | ||
|
||
Checkout a new branch, make modifications, build locally, and push the branch to your fork | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ gobenchmark: | |
@$(MAKE) for-all-target TARGET="benchmark" | ||
|
||
.PHONY: gotest-with-cover | ||
gotest-with-cover: | ||
gotest-with-cover: $(GOCOVMERGE) | ||
@$(MAKE) for-all-target TARGET="test-with-cover" | ||
$(GOCOVMERGE) $$(find . -name coverage.out) > coverage.txt | ||
|
||
|
@@ -339,7 +339,7 @@ checkdoc: | |
|
||
# Construct new API state snapshots | ||
.PHONY: apidiff-build | ||
apidiff-build: | ||
apidiff-build: $(APIDIFF) | ||
@$(foreach pkg,$(ALL_PKGS),$(call exec-command,./internal/buildscripts/gen-apidiff.sh -p $(pkg))) | ||
|
||
# If we are running in CI, change input directory | ||
|
@@ -351,7 +351,7 @@ endif | |
|
||
# Compare API state snapshots | ||
.PHONY: apidiff-compare | ||
apidiff-compare: | ||
apidiff-compare: $(APIDIFF) | ||
@$(foreach pkg,$(ALL_PKGS),$(call exec-command,./internal/buildscripts/compare-apidiff.sh -p $(pkg))) | ||
|
||
.PHONY: multimod-verify | ||
|
@@ -368,9 +368,9 @@ multimod-prerelease: $(MULTIMOD) | |
COMMIT?=HEAD | ||
REMOTE?[email protected]:open-telemetry/opentelemetry-collector.git | ||
.PHONY: push-tags | ||
push-tags: | ||
multimod verify | ||
set -e; for tag in `multimod tag -m ${MODSET} -c ${COMMIT} --print-tags | grep -v "Using" `; do \ | ||
push-tags: $(MULTIMOD) | ||
$(MULTIMOD) verify | ||
set -e; for tag in `$(MULTIMOD) tag -m ${MODSET} -c ${COMMIT} --print-tags | grep -v "Using" `; do \ | ||
echo "pushing tag $${tag}"; \ | ||
git push ${REMOTE} $${tag}; \ | ||
done; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters