Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Fix ReplaceExtension #345

Closed
wants to merge 1 commit into from
Closed

Conversation

tweksteen
Copy link
Member

ReplaceExtension had an unexpected behaviour when the file did not have
an extension. In certain cases, the final path would be severely
trimmed: out/.intermediates/my_file would become out/.new_extension.
Explicitly handle the case by appending the new extension.

Test: Run checkbuild on Android Soong
Change-Id: Ie27a98845894cfaee5af5e2a02d44168c40ed821

ReplaceExtension had an unexpected behaviour when the file did not have
an extension. In certain cases, the final path would be severely
trimmed: out/.intermediates/my_file would become out/.new_extension.
Explicitly handle the case by appending the new extension.

Test: Run checkbuild on Android Soong
Change-Id: Ie27a98845894cfaee5af5e2a02d44168c40ed821
@tweksteen tweksteen requested a review from a team as a code owner February 15, 2021 18:54
Copy link
Contributor

@colincross colincross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, we're in progress with moving the source of truth for blueprint to AOSP, can you upload your change there?

@colincross
Copy link
Contributor

Nevermind, I used copybara to import it as https://android-review.googlesource.com/c/platform/build/blueprint/+/1591572

copybara-service bot pushed a commit that referenced this pull request Feb 17, 2021
ReplaceExtension had an unexpected behaviour when the file did not have
an extension. In certain cases, the final path would be severely
trimmed: out/.intermediates/my_file would become out/.new_extension.
Explicitly handle the case by appending the new extension.

Test: Run checkbuild on Android Soong
Change-Id: Ie27a98845894cfaee5af5e2a02d44168c40ed821

This is an imported pull request from
#345

GitOrigin-RevId: f9166c0
Change-Id: I63f0798177545792440b8a84b04f1090590f1642
@tweksteen
Copy link
Member Author

Great, thanks.

@tweksteen tweksteen closed this Feb 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants