Skip to content
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

-dest permissions #234

Open
xescugc opened this issue Jan 25, 2024 · 1 comment
Open

-dest permissions #234

xescugc opened this issue Jan 25, 2024 · 1 comment

Comments

@xescugc
Copy link

xescugc commented Jan 25, 2024

I've seen #10 but on my case I still get that the generated path -dest is with root

~/repos/maze-wars [fg-132] $> tree -pufi ./dist/ -L 4
[drwxr-xr-x xescugc ]  ./dist
[-rw-r--r-- xescugc ]  ./dist/config.yaml
[drwxr-xr-x root    ]  ./dist/maze-wars_darwin_amd64_v1
[drwxr-xr-x root    ]  ./dist/maze-wars_darwin_amd64_v1/maze-wars
[-rwxr-xr-x root    ]  ./dist/maze-wars_darwin_amd64_v1/maze-wars/maze-wars-darwin-10.12-amd64
[drwxr-xr-x root    ]  ./dist/maze-wars_linux_amd64_v1
[drwxr-xr-x root    ]  ./dist/maze-wars_linux_amd64_v1/maze-wars
[-rwxr-xr-x root    ]  ./dist/maze-wars_linux_amd64_v1/maze-wars/maze-wars-linux-amd64
[drwxr-xr-x root    ]  ./dist/maze-wars_windows_amd64_v1
[drwxr-xr-x root    ]  ./dist/maze-wars_windows_amd64_v1/maze-wars.exe
[-rwxr-xr-x root    ]  ./dist/maze-wars_windows_amd64_v1/maze-wars.exe/maze-wars-windows-4.0-amd64.exe

7 directories, 4 files

The command is xgo -out=maze-wars -hooksdir=.xgohooks/ -targets=windows/amd64 -gcflags= -ldflags='-s -w -X main.defaultHost=https://maze-wars.com' -dest /home/xescugc/repos/maze-wars/dist/maze-wars_windows_amd64_v1/maze-wars.exe ./cmd/client/

I'm doing something wrong?

PD: Ignore a bit all the weird paths, I'm building it with gorelease with few custom changes on it (not related to this issue) that would allow gorelease to easily build with xgo.

@xescugc
Copy link
Author

xescugc commented Jan 29, 2024

I did manually create a build.sh with:

DIR=./dist

chown -R --reference . $DIR

And now it does change the ownership to the one I want, is this the intended way?

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

No branches or pull requests

1 participant