Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache problem when changing files collection #156

Open
rjaros opened this issue Jan 1, 2024 · 0 comments
Open

Cache problem when changing files collection #156

rjaros opened this issue Jan 1, 2024 · 0 comments
Assignees

Comments

@rjaros
Copy link

rjaros commented Jan 1, 2024

Steps to reproduce:

  1. Checkout https://github.com/rjaros/kilua
  2. Run NPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack (some token in env is required to enable task)
  3. Two packages are created inside kilua-assets/build/packages. aaa-kilua-assets-0.0.3.tgz contains nodejs_dom.js and nodejs_dom.mjs files, and zzz-kilua-assets-0.0.3-tgz contains style.css at the top level (so far so good, this is how the packages are configured inside kilua-assets/build.gradle.kts).
  4. Now make a change in kilua-assets/build.gradle.kts changing from("$projectDir/src/js") to from("$projectDir/src") and from("$projectDir/src/css") to from("$projectDir/src").
  5. Delete kilua-assets/build directory
  6. Run NPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack again.
  7. Two packages are created again but the first one (aaa-kilua-assets-0.0.3.tgz) still contains nodejs_dom.js and nodejs_dom.mjs files at top level (and it should not - it should be the same as the other package, which for some reason is build correctly). Cleaning the project and build directories doesn't help. The package will be incorrect every time.
@mpetuska mpetuska self-assigned this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants