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

Docker updates #260

Merged
merged 3 commits into from
Sep 30, 2024
Merged

Docker updates #260

merged 3 commits into from
Sep 30, 2024

Conversation

jnikula
Copy link
Owner

@jnikula jnikula commented Sep 28, 2024

Some updates to running stuff in containers.

Similar to running test or html targets.

The Fedora containers need to have diffutils installed for diff.
The error is due to the dependency:

$(HAWKMOTH_ARCHIVE): $(shell git ls-files)

Even if git was available, it's not run inside a work tree in
docker. Check if git is available and we're running inside work tree,
and bail out if $(HAWKMOTH_ARCHIVE) is needed in that case.
Disable the cacheprovide plugin to disable pytest caching to get rid of
the warnings:

.venv/lib/python3.11/site-packages/_pytest/cacheprovider.py:475
  /src/.venv/lib/python3.11/site-packages/_pytest/cacheprovider.py:475: PytestCacheWarning: could not create cache path /src/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/src/pytest-cache-files-aac8j54o'
    config.cache.set("cache/nodeids", sorted(self.cached_nodeids))

.venv/lib/python3.11/site-packages/_pytest/stepwise.py:51
  /src/.venv/lib/python3.11/site-packages/_pytest/stepwise.py:51: PytestCacheWarning: could not create cache path /src/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/src/pytest-cache-files-psah1we8'
    session.config.cache.set(STEPWISE_CACHE_DIR, [])
Copy link
Collaborator

@BrunoMSantos BrunoMSantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me ;)

@jnikula jnikula merged commit 4f9756a into master Sep 30, 2024
6 checks passed
@jnikula jnikula deleted the docker-updates branch September 30, 2024 09:09
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

Successfully merging this pull request may close these issues.

2 participants