Import as library
I just can't take and import your backend into the project because of the used replaced package. I have to clone the repository and push it up the level of the project
This project isn't really intended to be used as a library. May I ask what pieces of it you are trying to use?
To reuse api request and response structures
Gotcha. I looked into this and it seems like a hard problem to solve. Open to suggestions on how to remove the replace while still making it easy for devs to use a local version of core
In GO 1.18, a workspace mode will be added, perhaps this is something that will be able to solve this issue out of the box, but it will also require updating everything to GO 1.18 I haven't tried it, if I have time, I'll try and unsubscribe
https://go.googlesource.com/proposal/+/master/design/45713-workspace.md
I have tested and it works successfully, what will be required for this in general
- consider PR https://github.com/deso-protocol/core/pull/210 which fixes the import of the core as a library and update imports accordingly in other projects
- updated to go 1.18
- create a go.work file
- update the dockerfile assembly
- update docs
- update other repositories where the core is used
Тhe result is a profit in the form of simplified assembly and development for other developers))