[botanist] Fix arm64 paving bug.

new(Foo) != nil
new returns a pointer to a Foo struct that is 'zeroed'; this is not
a nil pointer.

This fixes a bug in the arm64 codepath (i.e., for vim2s) in which the
following was happening:
-images.json for an arm64 build did not designate a kernel (with a
--boot switch) (WAI)
-in Pave(), in iterating over the images looking for a kernel, it tries
to reassign a pointer defined as new(Image); because no kernel was found
it passes this non-nil-but-garbage pointer to transfer() which fails in
trying to open it.

Change-Id: I2d1e6eec4f3103bd30b52c932b836206c769ab33
1 file changed
tree: 043d0cb593840833b05e70ebef5952482e4793f9
  1. bloaty/
  2. botanist/
  3. build/
  4. cache/
  5. cmd/
  6. color/
  7. digest/
  8. elflib/
  9. fastboot/
  10. gndoc/
  11. isatty/
  12. logger/
  13. mdns/
  14. netboot/
  15. ninjalog/
  16. pdu/
  17. qemu/
  18. retry/
  19. runtests/
  20. secrets/
  21. serial/
  22. symbolize/
  23. telnet/
  24. testsharder/
  25. tftp/
  26. .gitignore
  27. go.mod
  28. go.sum
  29. LICENSE
  30. manifest
  31. PATENTS
  32. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe. To add a tool to the build:

  • Edit the bot config.
  • Find the builder_mixins section with name: "tools".
  • Edit the JSON in properties_j to add a string to the packages list:
"fuchsia.googlesource.com/tools/cmd/your-new-tool"