Skip to content

Makefile: Reference admin index.html explicitly - #514

Merged
cliffcaseyyet merged 1 commit into
yetanalytics:mainfrom
lmkz:MakefileFix
Aug 11, 2026
Merged

cliffcaseyyet merged 1 commit into
yetanalytics:mainfrom
lmkz:MakefileFix

Conversation

@lmkz

@lmkz lmkz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

After cloning repo and performing "make ephemeral", web server returns an error as admin UI SPA files are not downloaded. /public/admin folder is initially present but empty. Changed Makefile to instead check for presence of index.html.

…download admin UI SPA, rather than just folder which exists but is empty initially
@cliffcaseyyet

Copy link
Copy Markdown
Contributor

Hi @lmkz ,

We appreciate the contribution. I cannot seem to reproduce the issue you referenced. Can you provide reproduction steps? I did:

  • clean clone of main
  • ran nothing but make ephemeral
  • it properly unzipped the admin UI.

Your fix seems harmless but I am just trying to understand the condition in which this would occur. Is it possible the public/admin files were deleted by something outside a make target?

Thanks,
Cliff

@lmkz

lmkz commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @cliffcaseyyet that's basically what I did, but the admin folder content didn't exist. When I get some time I'll try again from scratch with a fresh clone and report back here. Thanks.

@lmkz

lmkz commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Hello @cliffcaseyyet my apologies, I just tried that with a fresh clone and it all worked perfectly. Strange as I did exactly the same steps as previously. Perhaps last time I was missing some dependency which meant the admin folder got created but not its content on the first run (Makefile lines 10-14)? That seems most likely in hindsight, and make clean would've probably solved that.

@cliffcaseyyet

Copy link
Copy Markdown
Contributor

@lmkz Ok, well as I said the PR is pretty harmless from what I can tell so I'll get some other opinions on this end and maybe we'll merge it anyway on the off chance someone deletes the files but not the folders. I mainly just wanted to check there wasn't some condition we weren't thinking of. The one case I can think of is:

  • you have a machine that doesn't have unzip
  • You run it and it fails
  • then you go get unzip via package manager
  • then rerun and the folder has been created so it skips that part

Thanks,
Cliff

@lmkz

lmkz commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

@cliffcaseyyet I would say that is highly likely what happened. Thanks!

@cliffcaseyyet
cliffcaseyyet merged commit 35976bb into yetanalytics:main Aug 11, 2026
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.

2 participants