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

Idea: Fix path normalisation #5

Merged
merged 2 commits into from
Jan 27, 2019
Merged

Idea: Fix path normalisation #5

merged 2 commits into from
Jan 27, 2019

Conversation

tindzk
Copy link
Owner

@tindzk tindzk commented Jan 27, 2019

When a build file imported external modules, the idea command could fail with an exception thrown by relativize(). This commit addresses various corner cases and consolidates the logic for path normalisation.

Also, BuildConfig was changed to prefer a relative build project path as this value gets propagated to the generators.

The new tests could result in multiple dependency resolutions being triggered at the same time if artefacts were not cached locally. This was causing Drone CI builds to fail. Avoid concurrent access during dependency resolution by using a re-entrant lock.

Finally, make sure that the logger is only initialised once.

@tindzk tindzk force-pushed the bug/idea-modules branch 2 times, most recently from 9990725 to 3367af3 Compare January 27, 2019 18:27
When a build file imported external modules, the `idea` command
could fail with an exception thrown by `relativize()`. This commit
addresses various corner cases and consolidates the logic for path
normalisation.

Also, `BuildConfig` was changed to prefer a relative build project
path as this value gets propagated to the generators.
The new tests introduced in the previous commit could result in
multiple dependency resolutions being triggered at the same time if
artefacts were not cached locally. This was causing Drone CI
builds to fail. Avoid concurrent access during dependency resolution
by using a re-entrant lock.

Also, make sure that the logger is only initialised once.
@tindzk tindzk merged commit ce5a2f9 into master Jan 27, 2019
@tindzk tindzk deleted the bug/idea-modules branch January 27, 2019 19:02
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

Successfully merging this pull request may close these issues.

1 participant