On 6/22/22 8:15 AM, Neil C Smith wrote:
Why are you surprised there's caching?
Thank you, Neil. Now I get it.
I hadn't realized that the files going into the repository directory (in
~/src/netbeans) were the same ones being cached for the next time (in
~/.hgexternalcache). I thought they were distinct sets of files -- some
going into the repository and others going into the cache directory.
So that's why you need to clear both locations when testing my pull request:
$ rm -r ~/.hgexternalcache/*
$ git clean -xdf
With just the 'git clean', the build uses the files in the cache; and
with just the cache cleared, the build uses the files already in the
repository. You have to remove the files from both locations to force
them to be downloaded again.
I thought they were two different sets of files until I compared them
with the following 'sed' scripts:
$ rm -r ~/.hgexternalcache/*
$ git clean -xdf
$ ant -debug -logfile download.log -Dmetabuild.branch=master
download-all-extbins
$ cat download.log | grep ^Downloading | sed 's|Downloading:
https://.*/||' | sed -r 's|^[0-9A-F]+-||' | sort > binaries.log
$ find ~/.hgexternalcache/ -type f | sed -r
's|/home/ubuntu/.hgexternalcache/||' | sed -r 's|^[0-9A-F]+-||' | sort >
cache.log
$ wc -l binaries.log cache.log
564 binaries.log
564 cache.log
1128 total
$ diff -s binaries.log cache.log
Files binaries.log and cache.log are identical
Thanks,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists