- Download and install Docker
-
Run the update script:
./update_generated_code.sh
-
Add the license header back to the generated source file.
Publishing can only be performed by someone with commit privileges to the repo.
-
Ensure you are in the branch (likely
master
) and at the commit you'd like to tag as a release version. -
Decide on the new semantic version of the form
vX.Y.Z
. Use it in the commands below. -
Execute the following:
git tag golang/gtfs/vX.Y.Z git push origin golang/gtfs/vX.Y.Z
Note the prefix of
golang/gtfs/
per the golang reference documentation about packages that belong to a subdirectory within a larger repo, where our repo root path isgithub.com/MobilityData/gtfs-realtime-bindings
and our subdirectory isgolang/gtfs
. See https://go.dev/ref/mod#vcs-version for more info. -
Verify that the publish was successful with the following command:
GOPROXY=proxy.golang.org go list -m github.com/MobilityData/gtfs-realtime-bindings/golang/[email protected]
For more information about Go module publishing, see the official documentation.
See indexed releases at https://pkg.go.dev/github.com/MobilityData/gtfs-realtime-bindings/golang/gtfs.