k3s/hack/lib
Kubernetes Submit Queue 84b3dcca08
Merge pull request #56249 from ixdy/git-archive-source-tarballs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use `git archive` to produce kubernetes-src.tar.gz when git tree is clean

**What this PR does / why we need it**: uses `git archive` to embed version information in the kubernetes source tarball produced in releases. Due to recent changes, the version information was missing from the source tarball, causing builds from these source tarballs to potentially fail.

This also includes a fix inspired by #56216, since the ld flags in `hack/lib/version.sh` are not space-safe.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56246

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/assign @david-mcmahon 
/priority urgent-soon
/sig release
cc @mrueg
2017-11-22 23:58:42 -08:00
..
.gitattributes Capture git export-subst strings in version.sh for 'git archive' use. 2017-11-09 16:36:27 -08:00
BUILD Remove kubectl's dependence on schema file in pkg/api/validation. 2017-08-16 16:38:28 -07:00
etcd.sh etcd: update version to 3.1.10 2017-10-02 12:27:46 -07:00
golang.sh Merge pull request #47497 from mikedanese/binary 2017-11-08 22:11:53 -08:00
init.sh Merge pull request #49112 from gmarek/eventAPI 2017-11-22 21:48:42 -08:00
protoc.sh Fixup after k8s.io/{kube-gen -> code-generator} rename 2017-08-17 17:55:12 +02:00
swagger.sh Extract gnu-sed detection into a function 2017-10-16 13:21:09 -07:00
test.sh add cmd-test for sort-by command 2017-08-11 15:53:31 +08:00
util.sh Retry transient errors when fetching cfssl*. 2017-11-16 15:02:53 +01:00
version.sh Rename tree state from 'git archive' to 'archive' 2017-11-22 12:19:38 -08:00