Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

[Proposal] Move cloned dependencies to temporary directories  #82

@erfanian

Description

@erfanian

Currently we fetch the following assets when running usb.go:

  • The Linux Kernel
  • Linux Firmware
  • Vboot
  • Chrome

I propose that we move cloning these resources to the os.TempDir. Build artifacts that are required for successful execution will be copied to a new stable directory in os.TempDir.

usb would lose support for the following flags:

  • fetch
  • skiproot
  • skipkern
  • keys

Instead, the utility would gain support for one new flag, which would indicate that it should attempt to retrieve all dependencies and recreate any build artifacts. The utility would now check for the presence of the build artifacts in the os.TempDir, and if they were not found, would again attempt to retrieve and recreate all of the build artifacts.

This would have to be done in a way that would still support the static and dynamic build modes.

This may result in more time spent compiling if users reboot frequently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions