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 DISTFILES_CACHE dir or prompt if !exists #285

Open
koobs opened this issue Mar 29, 2015 · 4 comments
Open

Create DISTFILES_CACHE dir or prompt if !exists #285

koobs opened this issue Mar 29, 2015 · 4 comments

Comments

@koobs
Copy link
Member

koobs commented Mar 29, 2015

When running testport for the first time in a freshly created poudriere environment, the following error is observable:

====>> Error: DISTFILES_CACHE directory does not exist. (c.f. poudriere.conf)

DISTFILES_CACHE=/usr/ports/distfiles

The ports tree in question is a 'none' map against the system ports tree:

  • default portsnap 2015-03-29 14:00:37 /usr/ports

Suggest poudriere either:

  1. Creates the DISTFILES_CACHE directory if it doesn't exist, with the following user output:
DISTFILES_CACHE (<path>) not found, creating ...
Directory created: <path>

OR

  1. Prompt the user:
DISTFILES_CACHE (<path>) not found
Create directory <path>? [Y/N]
@tony
Copy link

tony commented Nov 3, 2015

Just encountered this, making the directory fixed it for me.

It would also be helpful if poudriere were to let you know if that variable is already set and its' value

@stefanchauveau
Copy link

mkdir /usr/ports/distfiles

but i agree on the suggestion

@rene0
Copy link
Member

rene0 commented Jul 11, 2020

@ykla
Copy link

ykla commented Mar 12, 2023

This issue also in poudriere-devel-3.3.99.20220831 with freebsd 13.1

root@ykla:/home/ykla # poudriere bulk  -j 13-0-adm64 -O decke sysutils/docker-engine
[00:00:00] Error: DISTFILES_CACHE directory does not exist. (cf.  poudriere.conf)
Exiting with status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants