I am trying to create a snap that needs to call go test as it’s a wrapper for that command that prettyfies the output.
So a two-part question.
Can this snap call the go binary installed on the system if it’s not a snap? I’m assuming it’s only yes if my snap is classic.
Can this snap call the go binary installed on the system via snap?
I can’t install Go within the snap because it will likely not be the same version of Go the user is developing with, which can impact the accuracy of running go test for their code.
Make several Go runtime as content snaps and instruct users to connect the required Go runtime version to your snap, however in my knowledge such content snap doesn’t exist.
@FelicianoTech another approach you might consider (keeping in mind I don’t know what it is exactly you’re proposing to package) is talking with @mwhudson to see if he’s interested in including it in the go snap itself.
Generally speaking I want to keep the Go snap close to the upstream distribution. (I should take another run at getting upstream more interested in maintaining it in fact…)