Skip to content

Make west init more impodent #27

@gonzolively

Description

@gonzolively

Background: We have a unique scenario where our organization hosts a repository that is synced to another repository (identical name/code/etc) in an open-source project. This open-source project uses a physical build machine, as it was donated by some of our community members.

Problem: The problem we're having is that our workflow file specifies the action-zephyr-setup@v1 action, but because we're using a physical build machine, we get an error essentially saying the project has already been initialized (see error below), which is true because the build state persists on this machine.

Error:

Run west init -l application --mf west.yml
  west init -l application --mf west.yml
  west update -o=--depth=1 -n
  shell: bash --noprofile --norc -e -o pipefail {0}
FATAL ERROR: already initialized in /__w/ocre-runtime/ocre-runtime, aborting.
  Hint: if you do not want a workspace there, 
  remove this directory and re-run this command:
  /__w/ocre-runtime/ocre-runtime/.west

Proposed Solution: We could add a cleanup step before this action to ensure that the project is not initialized however, it would be nicer/cleaner if this action provided an option to clean the workspace beforehand or ignore if a workspace is already initialized.

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