Skip to content

chore: bump github.com/u-root/u-root from 0.13.0 to 0.14.0 #12636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 18, 2024

Bumps github.com/u-root/u-root from 0.13.0 to 0.14.0.

Release notes

Sourced from github.com/u-root/u-root's releases.

v0.14.0 - breaking u-root build system changes

[!IMPORTANT] TL;DR: When Go modules are enabled, you won't be able to run u-root from any arbitrary directory after this release. u-root must be run somewhere with a Go module or Go workspace. (With GO111MODULE=off the behavior should be as it always has been.)

u-root will now work exactly when go build works as well.

Use Go workspaces to compile commands from multiple modules together locally. A tool called goanywhere can create a workspace on the fly. Check out the README for more.

Go workspaces are not as suitable to be committed to a git repository. The recommended method for source-control-committed multi-module commands is described by the mkuimage README.

This change pulls in u-root/gobusybox#110, in which we stop supporting module builds without a go.mod. In essence, from this point forward, the u-root tool will support builds exactly when go build and go list also work. u-root/gobusybox#110 reduces a lot of maintenance burden, trivially starts supporting Go workspaces and Go module replace directives, and increases gobusybox code's readability.

Multi-module builds can be done easily with standard Go methods, as described in the README. Go workspaces, vendored Go workspaces, Go modules, and vendored Go modules are all supported. Completely offline builds can easily done with vendored Go modules or workspaces.

For ease of use, the goanywhere tool was created. goanywhere creates a temporary directory with a Go workspace of the given commands, and then execs a binary passing along the Go command paths. Use like goanywhere ./u-root/cmds/core/{init,gosh} ./cpu/cmds/cpud -- u-root [other u-root args]. This approaches the easy usability of u-root up to this point.

goanywhere does not work with templates. goanywhere only accepts file system paths at this time.

This also fixes the issue where binary mode builds didn't always work in the same cases where gbb builds worked. Both are now always supported in the exact same circumstances.

This change also pulls in u-root/mkuimage#28, in which we support generic template YAML files named ".mkuimage.yaml" in the current working directory or any of its parents. Templates support the existing command expansions, but also support configs (invoked with u-root -config=$config) in which one can specify build configuration and mixed-builder (bb/binary) builds. They will be documented in a README at a later time.

[!NOTE]

If you have any issues, please file an issue and use the last release before this change, which is v0.13.1.

What's Changed

Full Changelog: u-root/u-root@v0.13.1...v0.14.0

v0.13.1

TL;DR

Maintenance release before the anticipated breaking change of u-root/u-root#2923.

  • #2914 fixed a DHCP client forever hang introduced by #2845 in cases where the link never comes up.

  • cmds/boot/{systemboot,fbnetboot,localboot} have been moved to cmds/exp/{systemboot,fbnetboot,localboot} as they are less maintained than the remaining boot commands in cmds/boot.

What's Changed

... (truncated)

Commits
  • eadd8c6 Update README with new mkuimage instructions
  • 3bc921d Properly define vmtest dependencies
  • 32e0072 Remove tools/mkinitramfs -- mkuimage can achieve the same
  • ef144c9 Remove pkg/uroot
  • 285135e Use mkuimage instead of pkg/uroot
  • 40fa1e2 Templates as uimage config
  • 14d5503 Get mkuimage
  • e2dc8b2 pkg/dt: fix revive superfluous-else linter
  • 18594f3 Add a playbook entry showing how to set verbose init
  • 4b4f633 cmds/core/df: remove redurant else
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@matifali matifali requested review from coadler and ammario March 18, 2024 11:19
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/u-root/u-root-0.14.0 branch from 1dd121f to ca924a8 Compare March 18, 2024 11:45
Bumps [github.com/u-root/u-root](https://github.com/u-root/u-root) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/u-root/u-root/releases)
- [Changelog](https://github.com/u-root/u-root/blob/main/RELEASES)
- [Commits](u-root/u-root@v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/u-root/u-root
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/u-root/u-root-0.14.0 branch from ca924a8 to 7fe6f93 Compare March 18, 2024 11:46
@ammario ammario removed their request for review March 18, 2024 14:38
@kylecarbs kylecarbs merged commit 124da2e into main Mar 18, 2024
@kylecarbs kylecarbs deleted the dependabot/go_modules/github.com/u-root/u-root-0.14.0 branch March 18, 2024 15:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant