With this change we read .asfignore from the Git checkout if it
exists. For purposes of verifying that the git repo and the source
archive match, files whose filenames match any filename specified in
.asfignore is ignored. Note that there is currently no support for
either specifying folders in .asfignore, or wildcards. It's a strict,
filename-only match.
Test without .asfignore:
$ python src/main.py --module zipkin-api --version 0.2.1 --gpg-key 50D90C2C \
--git-hash bc3cd4af4108f2ff7522d0c2782a6bb856bc05dd --repo release \
--zipname-template 'apache-{module}{dash_incubating}-{version}-source-release' \
--github-reponame-template '{module}.git' \
--github-org abesto
...
[WARN] Git tree at provided revision matches source archive
/tmp/tmpve7uk1ix/git/zipkin-api.git/javadoc is only in the git checkout
/tmp/tmpve7uk1ix/git/zipkin-api.git/package-lock.json is only in the git checkout
/tmp/tmpve7uk1ix/git/zipkin-api.git/package.json is only in the git checkout
/tmp/tmpve7uk1ix/git/zipkin-api.git/pom.xml is only in the git checkout
/tmp/tmpve7uk1ix/git/zipkin-api.git/src is only in the git checkout
/tmp/tmpve7uk1ix/git/zipkin-api.git/validate.test.js is only in the git checkout
The contents of the following files differ: zipkin2-api.yaml
With this change we read
.asfignore
from the Git checkout if it exists. For purposes of verifying that the git repo and the source archive match, files whose filenames match any filename specified in.asfignore
is ignored. Note that there is currently no support for either specifying folders in.asfignore
, or wildcards. It's a strict, filename-only match.Test without
.asfignore
:Test with
.asfignore
committed into a fork:.asfignore
file used for the test: