Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add internal/trace from golang #55

Merged
merged 3 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
internal/trace/* linguist-generated=true
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# Needs to be defined before including Makefile.common to auto-generate targets
DOCKER_ARCHS ?= amd64 armv7 arm64
GOLANGCI_LINT_OPTS = --skip-dirs internal

include Makefile.common

Expand All @@ -37,6 +38,16 @@ check_assets: assets
exit 1; \
fi

.PHONY: sync
sync: sync-trace-pkg

.PHONY: sync-trace-pkg
sync-trace-pkg:
mkdir tmp && cd tmp && git clone https://github.com/golang/go.git && cd ../
cp -r tmp/go/src/internal/trace internal/trace
rm -rf tmp
echo "#IMPORTANT DO NOT EDIT! This code is synced from go repository. Use make sync to update it." > internal/trace/README.md

# crossbuild builds all binaries for all platforms.
.PHONY: crossbuild
crossbuild: $(PROMU)
Expand Down
1 change: 1 addition & 0 deletions internal/trace/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading