Commit e49c04c
committed
fix(build): ignore node_modules and package-lock.json to prevent :dirty version
The npmInstall task (dependency of bundleScanner → processResources) writes
node_modules/ and package-lock.json into methodatlas-discovery-typescript/.
Because these paths were absent from .gitignore the Palantir git-version
plugin detected them as untracked files via git status --porcelain and
appended :dirty to the version — making every task after the first
./gradlew test appear to run on a dirty tree.
To opt into fully reproducible builds (npm ci instead of npm install),
remove the package-lock.json line, run npmInstall once, and commit the
generated lock file.1 parent 7d2562f commit e49c04c
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
| |||
0 commit comments