Skip to content

Commit

Permalink
Enable --calculate-build-deps option in csmock
Browse files Browse the repository at this point in the history
Related: openscanhub#75

Signed-off-by: Siteshwar Vashisht <[email protected]>
  • Loading branch information
siteshwar committed Nov 5, 2024
1 parent b1cb7b9 commit 333845e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- gh-75
jobs:
build-and-push-osh-hub:
runs-on: ubuntu-20.04
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# mock site configuration
# -----------------------
#
# Any configuration here has global effect - affects all mock users on this host
# and all the mock chroot configurations. User specific configuration can be
# installed to "$HOME/.config/mock.cfg".
#
# Config options are documented in /usr/share/doc/mock/site-defaults.cfg file.
#
# Entries in this file follow the same format as other mock config files:
# config_opts['foo'] = 'bar'
config_opts["calculatedeps"] = True
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
name: csmock-plugin-clippy
state: latest

# Workaround for https://github.com/openscanhub/fedora-infra/issues/75
# TODO: Remove when https://github.com/csutils/csmock/issues/188 is resolved
- name: Copy /etc/mock/site-defaults.cfg
ansible.builtin.copy:
src: site-defaults.cfg
dest: /etc/mock/site-defaults.cfg
owner: root
group: mock
mode: 0644

- name: Print status of the worker
ansible.builtin.debug:
msg: Worker virtual machine is set up, but `osh-worker` is not started. It should be started by `osh-worker-manager` from osh-hub.

0 comments on commit 333845e

Please sign in to comment.