Skip to content
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

Create artifactdir if it does not exist #426

Open
obbardc opened this issue Aug 9, 2023 · 0 comments · May be fixed by #429
Open

Create artifactdir if it does not exist #426

obbardc opened this issue Aug 9, 2023 · 0 comments · May be fixed by #429
Assignees

Comments

@obbardc
Copy link
Member

obbardc commented Aug 9, 2023

We should attempt to create artifactdir if it is passed to debos and doesn't exist.

Currently it will fails with something similar to:

obbardc@obbardc-t14:~/projects/debos/debos-recipes$ debos --artifactdir=out rpi64/debimage-rpi64.yaml 
2023/08/09 12:34:00 Action `image-partition` failed at stage PreMachine, error: open /home/obbardc/projects/debos/debos-recipes/out/debian-rpi64.img: no such file or directory
@obbardc obbardc self-assigned this Aug 9, 2023
obbardc added a commit that referenced this issue Aug 11, 2023
Currently debos fails if an action attempts to use artifactdir and it
doesn't exist on the host:

  $ debos --artifactdir=out rpi64/debimage-rpi64.yaml
  Action `image-partition` failed at stage PreMachine, error: open /home/obbardc/projects/debos/debos-recipes/out/debian-rpi64.img: no such file or directory

Check that artifactdir exists early and return an error in case that it
does not exist.

Closes: #426
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
@obbardc obbardc linked a pull request Aug 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant