'make watch' dosen't work in wsl2 #10297

Closed
opened 2025-11-02 09:03:32 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @yp05327 on GitHub (Feb 19, 2023).

Description

It seems that make watch dosen't work in wsl2 (Ubuntu-22.04)
I installed a VM (Ubuntu-22.04) today, and it worked well.
Should I change some settings in wsl2 to make it work or this is just a bug?

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Originally created by @yp05327 on GitHub (Feb 19, 2023). ### Description It seems that `make watch` dosen't work in wsl2 (Ubuntu-22.04) I installed a VM (Ubuntu-22.04) today, and it worked well. Should I change some settings in wsl2 to make it work or this is just a bug? ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? build ### Database None
GiteaMirror added the type/upstreamtopic/build labels 2025-11-02 09:03:32 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Feb 19, 2023):

You may specify "doesn't work".

@KN4CK3R commented on GitHub (Feb 19, 2023): You may specify "doesn't work".
Author
Owner

@yp05327 commented on GitHub (Feb 19, 2023):

@KN4CK3R
make watch can build and run the server.
But when a file is changed and saved, it won't reflect the changes.
The source codes are all saved in ntfs (in the mnt path)

@yp05327 commented on GitHub (Feb 19, 2023): @KN4CK3R `make watch` can build and run the server. But when a file is changed and saved, it won't reflect the changes. The source codes are all saved in ntfs (in the mnt path)
Author
Owner

@KN4CK3R commented on GitHub (Feb 19, 2023):

maybe related: https://github.com/cosmtrek/air/issues/274

I use docker inside the WSL2 environment and that works fine.

@KN4CK3R commented on GitHub (Feb 19, 2023): maybe related: https://github.com/cosmtrek/air/issues/274 I use docker inside the WSL2 environment and that works fine.
Author
Owner

@yp05327 commented on GitHub (Feb 20, 2023):

I moved the source codes to ~/{your_path} instead of /mnt/{your_path_in_windows} and it reflected the changes!

But all assets files were 404 when I added bindata Tag. Is it a bug, or just should not be added when we run make watch.
image

@yp05327 commented on GitHub (Feb 20, 2023): I moved the source codes to `~/{your_path}` instead of `/mnt/{your_path_in_windows}` and it reflected the changes! But all assets files were 404 when I added `bindata` Tag. Is it a bug, or just should not be added when we run `make watch`. ![image](https://user-images.githubusercontent.com/18380374/220013253-02fa015c-075f-40b0-8cc6-6db8a9d20dcb.png)
Author
Owner

@lunny commented on GitHub (Feb 20, 2023):

Don't use bindata when run make watch.

@lunny commented on GitHub (Feb 20, 2023): Don't use `bindata` when run `make watch`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10297