wirepair / gcd

Unofficial implementation of the Google Chrome Remote Debugger in Go
MIT License
186 stars 31 forks source link

Specify revision to use when updating protocol #64

Closed eatdrinksleepcode closed 1 year ago

eatdrinksleepcode commented 1 year ago

This MR adds the option to specify a revision to use when downloading protocol files. This is necessary because Chrome DevTools does not track the stable channel, unlike the version information that is embedded into gcd. For example, currently Chrome DevTools master is on 112, but the stable channel is on 111. So if you run gcdapigen -update, you end up with the protocol file and generated code for 112, but the CHROME_VERSION in version.go is 111.

Usage:

cd v2/gcdapigen
go build
./gcdapigen -update -rev=v0.0.1119769
wirepair commented 1 year ago

Had to merge with failed tests due to too old of protocol versions for test.