maas-ui Makefile does not detect source changes to trigger rebuild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Low
|
Unassigned |
Bug Description
I reported a couple of UI bugs that ended up being fixed in the UI already. The reason the UI never updated for me is that the Makefile does not detect changes to the UI. I suspect this works when building the Snap because a clean environment is used every time. This is not the case when building development Debian packages.
Reproduction:
1. Build the UI
cd src/maasui
make
2. Make any edit to the UI
rm src/ui/src/*.js
3. Use the Makefile to rebuild, you'll see the following
make
yarn --cwd src copy-build
yarn run v1.19.1
$ mkdir -p build/legacy build/ui && cp -R legacy/build/* build/legacy/ && cp -R ui/build/* build/ui/
Done in 0.06s
Either the Makefile/yarn should be modified to be able to recognize changes or the Makefile should be modified to rebuild whenever called.
tags: | removed: ui |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Does this still happen with the recent changes to the Makefile?