Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid version: unknown revision b37157d46ec6 #1

Open
hce opened this issue Mar 31, 2021 · 4 comments · May be fixed by #2
Open

invalid version: unknown revision b37157d46ec6 #1

hce opened this issue Mar 31, 2021 · 4 comments · May be fixed by #2

Comments

@hce
Copy link

hce commented Mar 31, 2021

Compiling the tool using the command line

go get github.com/starlink-community/starlink-cli/cmd/basic-cli

does work; however, cloning the repository and trying to run it manually via

go run cmd/basic-cli/main.go

fails with the error message:

go: github.com/starlink-community/[email protected]: invalid version: unknown revision b37157d46ec6
@cheako
Copy link

cheako commented Jun 6, 2021

This is not trivially solved, and I've declared go as completely unusable and will try my best to never use it again.

@marccampbell marccampbell linked a pull request Oct 5, 2021 that will close this issue
@jmortonTarget05
Copy link

jmortonTarget05 commented Dec 1, 2021

I think this is in part because the https://github.com/starlink-community/starlink-grpc-go go.mod file does not have any values.

edit: I noticed the PR to fix this is simply pointing to a different commit for starlink-grpc-go. I am not sure that this is the permanent fix. The fix should be to make that set of code complete and ideally tag a release that can be referenced instead of pulling the last commit

To get this to work locally,

  • I cloned down this repo
  • I cloned down https://github.com/starlink-community/starlink-grpc-go, ran go mod tidy so that the appropriate packages were there.
  • I then used the replace function in the go.mod of the starlink-cli to point to my local starlink-grcp-go code (with the updated go.mod)

don't forget to go mod tidy and i needed go get

starlink-cli\go.mod

module github.com/starlink-community/starlink-cli

go 1.14

require (
	github.com/golang/protobuf v1.5.0
	github.com/starlink-community/starlink-grpc-go v0.0.0-20210211194025-b37157d46ec6
	google.golang.org/grpc v1.42.0
)

replace github.com/starlink-community/starlink-grpc-go => /Path/To/development/github.com/starlink-community/starlink-grpc-go

starlink-grpc-go\go.mod

module github.com/starlink-community/starlink-grpc-go

go 1.14

require (
	google.golang.org/grpc v1.42.0
	google.golang.org/protobuf v1.27.1
)

go run cmd/basic-cli/main.go

dish_get_status: <
  device_info: <
    id: "ut01000000-00000000-0002ccf8"
    hardware_version: "rev2_proto2"
    software_version: "86bab8ba-c91b-48a2-a495-e9ef466bad1c.uterm.release"
    country_code: "US"

<TRUNCATED OUTPUT>

cpu added a commit to cpu/starlink-cli that referenced this issue Jan 18, 2022
The project also fails to build with the current `go.mod`/`go.sum`
version for this dependency (see the associated issue[0]). This can be
side-stepped by pointing at the right commit of
`starlink-community/starlink-grpc-go`, however it introduces a new
challenge:

Running a router w/ `2022.01.0.mr8624-prod` and a dish w/
`992cafb5-61c7-46a3-9ef7-5907c8cf90fd.uterm.release` the
`starlink-community/starlink-grpc-go` generated protobuf types result in
incomplete output with "unknown bytes".

This PR fixes the build and the incomplete information by temporarily
using a fork of `starlink-grpc-go` with updated generated protos. Once
the upstream project has merged the updated protos the `replace`
directive to use the fork can be removed.

With this branch in place I was able to fetch complete information for
the software versions on my dish/router.

[0]: starlink-community#1
@Sfinx
Copy link

Sfinx commented Apr 14, 2022

go get github.com/starlink-community/starlink-cli/cmd/basic-cli

go get: github.com/starlink-community/starlink-cli@none updating to
	github.com/starlink-community/[email protected] requires
	github.com/starlink-community/[email protected]: invalid version: unknown revision b37157d46ec6

go version
go version go1.16.6 linux/amd64

Ubuntu 20.04

@bill-mcgonigle
Copy link

as of today:

$ git clone https://github.com/bareboat-necessities/starlink-cli.git
$ cd starlink-cli
$ go get github.com/bareboat-necessities/starlink-cli/cmd/basic-cli
$ go build cmd/basic-cli/main.go 
$ ./main 

gets me enough info for a gauge probe, though trailing with:

  /* 31 unknown bytes */
  1016: 1000
  1018: 1
  1019: "\b\x01\x10\x01\x18\x01 \x01(\x010\x01"
  1021: 1
  1023: 1
  1024: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants