[fuchsia-pkg] Require MetaPackage variant to be zero

As part of supporting arbitrarily nested package paths, we need to first
enforce all package variants are "0". pm has already removed the ability
to customize the variant, so this change modifies fuchsia-pkg to also
remove that ability.

Note that for backwards compatibility, it still will allow for
deserializing meta/package that contain non-zero variants, in case there
are any users of this still out there.

Fixed: 93665

Change-Id: I341a10031be74a300ff3583902f7dbb71e1eddcb
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/645503
Reviewed-by: Ben Keller <galbanum@google.com>
Reviewed-by: Jiaming Li <lijiaming@google.com>
Commit-Queue: Erick Tryzelaar <etryzelaar@google.com>
Fuchsia-Auto-Submit: Erick Tryzelaar <etryzelaar@google.com>
13 files changed
tree: 2d99773bc6902f532af238ddc902e7e4bff939d4
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.