Closed gcampbell-msft closed 1 year ago
Hi! The same problem exists for non-batch builds too, even if it's easier to work around for those. This should "just work", so that all non-configured builds automatically populate $WS_DIR$
according to the UI selection. I think you've got the right idea with creating a temporary .custom_argvars file, so that it's mostly invisible to the user.
We'll probably allow a build task to point to either a .eww file (which will default to the one selected in the UI) or a .custom_argvars file. When pointed to a .eww file, we'll inject the correct $WS_DIR$
using a temporary file.
@HampusAdolfsson Thanks for getting workspace and batch build support enabled!
I just tested it out and the UI looks great! However, I noticed that while WS_DIR is supported in certain contexts, it isn't working for me in batch builds, as it doesn't seem to be propagating the WS_DIR value replacement into the custom_argvars files.
I was able to make a slight modification in the code to get this to work, though I doubt it's a long term solution as it modifies the custom_argvars files in place, which wouldn't do great with git repos (as it replaces the $WS_DIR$ in place), but it fixed my issue for me in the current time.
This is my code that I modified in
eworkspace.ts
.A possible better way that I can think of is to create a temporary file with WS_DIR replaced and use this as the custom_arguments file.
Thanks!