[Design question] Why host logic on remote server?
Closed this issue · 1 comments
Describe the request
Hello guys,
I'm not experienced in Go but read some of your code recently.
I don't understand why core parts of your code are hardlinked to
your github repository. For example service_library_install
loads modules from github.com/arduino/arduino-cli.
If it's open-source client why not import that modules as local files?
After all it's just code that generates and runs strings to download, compile
and upload code to device. It won't prevent anyone from getting those modules
and changing "import" list to them.
Describe the current behavior
(I understand maillist is more suitable place for such questions but can't subscribe to it just by email.)
Arduino CLI version
1.0.4
Operating system
Linux
Operating system version
.
Additional context
No response
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the nightly build
- My request contains all necessary details
Hi @martin-eden. You misunderstood the code. That is the name of the local Go package. Go module paths include the domain of the repository where the module is hosted:
https://go.dev/ref/mod#module-path
This is not an appropriate place for us to explain the Go programming language to you. If you have questions about the Arduino CLI codebase, or would like to discuss the project, you are very welcome to ask over on Arduino Forum:
https://forum.arduino.cc/c/development-tools/arduino-cli/89
I actively monitor the forum, so I'll be sure to see your post over there and provide any explanations you like.