You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are building on linux with Go, go will produce a binary of the same name as the project top level directory.
Adding the name of this binary to the .gitignore file will cause processDirectories() to treat this as a wild card under the top level folder, effectively ignoring filesystem change notifications for the entire project.
observe the stunning silence from *fsnotify.Watcher as you frantically edit every go file trying to figure out what is happening.
Expected behaviour
the processDirectories() function applies only to sub-directories of the top level folder, matching the behavior or git for which the .gitignore file is designed.
Screenshots
No response
Attempted Fixes
No response
System Details
Wails CLI v2.5.1
SUCCESS Done.
# System
OS | Arch Linux
Version | Unknown
ID | arch
Go Version | go1.21.0
Platform | linux
Architecture | amd64
# Wails
Version | v2.5.1
Package Manager | pacman
# Dependencies
Dependency | Package Name | Status | Version
*docker | docker | Installed | 1:24.0.5-1
gcc | gcc | Installed | 13.2.1-3
libgtk-3 | gtk3 | Installed | 1:3.24.38-1
libwebkit | webkit2gtk | Installed | 2.40.5-1
npm | npm | Installed | 9.8.1-1
pkg-config | pkgconf | Installed | 1.8.1-1
* - Optional Dependency
# Diagnosis
Your system is ready for Wails development!
Additional context
No response
The text was updated successfully, but these errors were encountered:
This was pretty simple to solve, just by grabbing the base level directory with filepath.Base(cwd) and then putting an if on the ignoreDirs append to filter the append of the base directory (and consequently the binary name).
Description
If you are building on linux with Go, go will produce a binary of the same name as the project top level directory.
Adding the name of this binary to the
.gitignore
file will causeprocessDirectories()
to treat this as a wild card under the top level folder, effectively ignoring filesystem change notifications for the entire project.To Reproduce
(assumes project named
foo
under/home/you/foo
)cd && wails init -n foo -t <whichever>
foo
to .gitignorewails dev
*fsnotify.Watcher
as you frantically edit every go file trying to figure out what is happening.Expected behaviour
the
processDirectories()
function applies only to sub-directories of the top level folder, matching the behavior orgit
for which the.gitignore
file is designed.Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: