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
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 theCHROME_VERSION
inversion.go
is 111.Usage: