internal/counter: preserve programs' prerelease versions

Previously, any versions including "-" were treated like dev versions.
But program owners may want to check with telemetry, whether a sufficient
number of users had tested prerelease versions before making them
official releases. We still don't want to count every pseudo version
individually, so continue to map pseudo versions to 'devel'.

Fixes golang/go#63619

Change-Id: Ia4186560ce8987353b6af390dead10108bf0758e
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/547878
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2 files changed
tree: 9722468e22139070e63070fe2d671f065d6dfeae
  1. cmd/
  2. config/
  3. counter/
  4. godev/
  5. internal/
  6. upload/
  7. .dockerignore
  8. .eslintrc.json
  9. .gitignore
  10. .prettierrc.json
  11. .stylelintrc.json
  12. CONTRIBUTING.md
  13. doc.go
  14. go.mod
  15. go.sum
  16. LICENSE
  17. mode.go
  18. npm
  19. npx
  20. package-lock.json
  21. package.json
  22. PATENTS
  23. README.md
  24. tsconfig.json
  25. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.