Starcounter / Starcounter.ErrorCodes

Errorcodes for all Starcounter versions.
0 stars 0 forks source link

Race condition when building ErrorCodes #61

Closed per-samuelsson closed 5 years ago

per-samuelsson commented 5 years ago

It's because building error code project use the generator to generate files, and also run cleanup before that (deleting files), and since it's three targets, they will run three times in parallel.

Not only does it produce a race condition, it's generate 3 sets of files too, all equal.

Fix this by changing so that generator and clean just run once per project, not for every target.

per-samuelsson commented 5 years ago

Done. Merged in https://github.com/Starcounter/Starcounter.ErrorCodes/commit/92014428e69005a31fa2e7db1c4f832fbc0ae05c