New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wails build creating invalid folders based on embed file selections. Then failing. #3436
Comments
It seems this is an issue with how Wails generates a list of embedded files, the pattern matching syntax your external packages use is perfectly valid and it should match the associated files instead of looking for a directory with asterisks and whatnot. |
@precisionpete As we don't have your project to reproduce, could you please do a |
I don't use git on this one. Git is installed (thus the gitignore files). But I've not been committing things regularly. I think what changed was I combined the handlers and templates into the same folder. I was spending too much time going back and forth between two folders. This required adding the *.gohtml selection. I was working on the Windows version of the app at the time and all was well. When I went back to Linux, it started happening. I did not try it on macos. To continue to get work done, I separated the handlers and templates folders again, and it all worked. It also works on macros. So, maybe this bug has been there for a while? It would be interesting to know if it's wails or vite doing it. I'm using wails with sveltekit. The handlers are not used in the wails part of the app. I have another daemon that uses them. And even though the embeds are not "within" the wails app's context, they are in a package under the overall project. My application is a daemon that runs as root and a Wails front end that sits under a systray icon. Wails does not interact with http. Personally, I suspect some of the external tools wails is using in its build. |
Please try the above PR to see if this fixes your problem. If you are unsure how to do this, please follow this guide. Let us know how you get on 👍 |
Sorry, I have been nose down trying to meet a deadline. I will have to come back to it if its okay? A few days, |
That seems to have fixed it on Linux. It's also fixed on macOS. I never had the problem on Windows... Thanks for the fix. Great product! |
Description
I have a strange problem where the "wails build" process is creating folders with illegal names based on files I am embedding. The embed commands are not part of the wails app but are in another package in my project.
Wails build creates folders with those name
'assets/*', '*.gohtml'
, etc. with a file gitkeep in them. It's either wails or some component used by wails.Then, it fails to compile due to those existing. It is definitely wails build that is creating them. I delete them and they show up again.
To Reproduce
Just running wails build in my project root. It worked fine for months and just started.
Expected behaviour
It just compiles on Windows and used to on Linux
Screenshots
No response
Attempted Fixes
I delete the folders, delete the build folder. It all comes back.
System Details
Additional context
Please give me some hints on how to debug this...
The text was updated successfully, but these errors were encountered: