To reproduce:
sbt publishLocal
cd src/sbt-test/sbt-daffodil/saved-parsers-01
sbt -Dplugin.version=1.0.0-SNAPSHOT \
'set daffodilPackageBinVersions := Seq("3.7.0")' \
'packageDaffodilBin' \
'set daffodilPackageBinVersions := Seq("3.6.0")' \
'packageDaffodilBin'
You should see the following log
[info] compiling daffodil parser to .../saved-parsers-01/target/test-0.1-daffodil370.bin ...
[info] compiling daffodil parser to .../saved-parsers-01/target/test-0.1-two-daffodil370.bin ...
But after chaning the daffoilPackageBinVersions and running packageDaffodilBin again, you should see this but you do not:
[info] compiling daffodil parser to .../saved-parsers-01/target/test-0.1-daffodil360.bin ...
[info] compiling daffodil parser to .../saved-parsers-01/target/test-0.1-two-daffodil360.bin ...
The packageDaffodilBin command uses a custom cache, so it is likely that he cache needs to be invalidated if daffodilPackageBinVersions changes. Probably need to do the same if daffodilPackageBinInfos changes.
The workaround is to run sbt clean, which deletes existing bin files and invalidates the cache.
To reproduce:
You should see the following log
But after chaning the daffoilPackageBinVersions and running packageDaffodilBin again, you should see this but you do not:
The
packageDaffodilBincommand uses a custom cache, so it is likely that he cache needs to be invalidated ifdaffodilPackageBinVersionschanges. Probably need to do the same ifdaffodilPackageBinInfoschanges.The workaround is to run
sbt clean, which deletes existing bin files and invalidates the cache.