Closed khkissel closed 9 months ago
Have you downloaded GoUnify? Pls see https://github.com/MickMake/GoSungrow/issues/84#issuecomment-1715979300
That's it. Now the compilation is running without errors.
@MickMake It seems build script is broken.
GoUnify package is directly specified by relative filepath in go.mod. https://github.com/MickMake/GoSungrow/blob/master/go.mod#L5
this change is from this commit. https://github.com/MickMake/GoSungrow/commit/c4b870b7c7de647b757d61295dd7d66d11f5bba4#
Hi @miettal - I'm pretty sure the build script is not broken. The documentation just doesn't make it all that clear how you need to create the conditions for a successful compile.
Please see if this gist helps.
I have just re-tested on several platforms (listed in the gist) and successfully compiled on all of them.
Thank you quick response and sharing/making document gist. I'll follow this document. It seems build is ok in my environment. very Thank you.
In other hands, I think hardcoding of path to outside repository has problem of portability. It seems past version is not kind of this hardconding. do you have reason of this change? (I'm not familiar with go building system. so I just interested in)
do you have reason of this change?
No. I just looked at the error message showing the relative path construction and worked backwards to how the folder structure needed to be set up so the compile would succeed. I have no idea whether my structure is "right" in any absolute sense. The most I can say is "it works".
Hi there,
I've realized an issue when installing GoSungrow in the root or home directory ( /
or ~/
). In such cases, the reference ../../GoUnify
becomes invalid and points to inaccessible or non-existent paths.
Looking forward to a resolution. Thanks!
Hi @Kouda-Titanium - please see this gist. As the gist explains, you just have to set up the appropriate directory structure and then it will compile OK.
Tried to compile GoSungro, but got the following error:
Downloading:
Compiling: