Skip to content

packageDaffodilBin does not rebuild if daffodilPackageBinVersions changes #24

@stevedlawrence

Description

@stevedlawrence

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions