With an old version of go I could configure the build command in geany as
go install "%d"
But it seems that in Go1 you cannot provide to go install
the absolute path.
So I'd like to have a command enabling me in geany to run
go install mypackagename
when my edited file is
/some/path/to/my/project/go/src/mypackagename/editedfile.go
What can I put in the settings to obtain that ?
Please consider that I'm a linux noob and that there may exist a trivial solution using a combination of standard shell commands.
I would try something like
cd "%d" && go install
It changes the current working directory to the directory supplied by geany and
runs go install
if the directory change was successful.
This only works if geany is executing the build commands in a shell. Without that,
there's no cd
(the shell provides it as an inbuilt command) and this solution won't work.
Your only hope then is, to configure the current working dir for the build process in geany.