tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

[Issue#74] Expand location template/macro if found in copts

Open ravimandala opened this issue 6 years ago • 15 comments
trafficstars

Bazel supports location template and provides an API to expand location, with the path of the corresponding output file, if and when the context is accessible.

Tulsi currently doesn't support the location template and messes up the paths/ flags by splitting the template by space. Refer to https://github.com/bazelbuild/tulsi/issues/74 for more details.

\cc @DavidGoldman @reinhillmann @dierksen @googlebot

Change-Id: I397590c93a05918206fe9d78867095336d6532ae

ravimandala avatar Feb 06 '19 01:02 ravimandala

Also created this - https://bazel-review.googlesource.com/c/tulsi/+/89190

ravimandala avatar Feb 06 '19 01:02 ravimandala

Thanks to @ob for chipping in for this change.

@DavidGoldman @dierksen Can you please take a look at this? \cc @reinhillmann

ravimandala avatar Feb 06 '19 19:02 ravimandala

Posted this to #74, when I meant to post it here, but anyway, can you provide an example that we could add for an integration test?

dierksen avatar Feb 06 '19 23:02 dierksen

@dierksen I simplified the location expansion logic as per your suggestion. Also modified the .gitignore to exclude Tulsi's own Xcode project files and tulsi-workspace symlink. Please take a look.

ravimandala avatar Mar 01 '19 00:03 ravimandala

Friendly ping

DavidGoldman avatar Mar 08 '19 21:03 DavidGoldman

@DavidGoldman I think @ravimandala is waiting for https://github.com/bazelbuild/bazel/issues/7083 to be resolved before adding this change as it can potentially break valid builds if people add an actual call to $(location)...

ob avatar Mar 11 '19 20:03 ob

https://github.com/bazelbuild/bazel/issues/7083 is fixed. @ravimandala can you add the comment/example that @DavidGoldman requested?

ob avatar Mar 18 '19 15:03 ob

@DavidGoldman, @ob has an example in https://github.com/bazelbuild/bazel/issues/7083 in the form of a repro.sh to reproduce this issue. Does that help with integration test?

ravimandala avatar Mar 21 '19 00:03 ravimandala

@DavidGoldman, Can you please take a look?

ravimandala avatar Mar 22 '19 18:03 ravimandala

[Gentle reminder] @dierksen, @DavidGoldman - can you please review the changes? TIA.

ravimandala avatar Mar 25 '19 18:03 ravimandala

@DavidGoldman, @ob has an example in bazelbuild/bazel#7083 in the form of a repro.sh to reproduce this issue. Does that help with integration test?

It would you be good to modify the AspectTests to check that this works as intended (you can add some new copts to an existing target).

DavidGoldman avatar Mar 25 '19 19:03 DavidGoldman

Ahh, now I see what you mean. Let me add a test for this feature.

ravimandala avatar Mar 25 '19 20:03 ravimandala

@ravimandala Friendly ping—any update? :)

thii avatar Mar 28 '20 12:03 thii

Anyone know the state of this one?

keith avatar Aug 10 '20 22:08 keith

Related: https://github.com/bazelbuild/tulsi/pull/157

keith avatar Aug 10 '20 22:08 keith

Thanks for submitting this PR but this repository is being deprecated. Please switch to rules_xcodeproj as a more complete and maintained alternative.

keith avatar Feb 15 '23 17:02 keith