Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 2.15 KB

File metadata and controls

50 lines (41 loc) · 2.15 KB
title in-mock
date 2022-07-25
sidebar_position 25

packit build in-mock

Create RPMs in mock using content of the upstream repository.

:::tip If you get ERROR: Non-existing Mock config 'default', make sure the /etc/mock/default.cfg file/symlink is valid or use the -r or --root option to specify a chroot, for example:

packit build in-mock --root=fedora-40-x86_64

:::

Help

Usage: packit build in-mock [OPTIONS] [PATH_OR_URL]

  Build RPMs in mock using content of the upstream repository.

  PATH_OR_URL argument is a local path or a URL to the upstream git
  repository, it defaults to the current working directory.

Options:
  --upstream-ref TEXT       Git ref of the last upstream commit in the current
                            branch from which packit should generate patches
                            (this option implies the repository is source-
                            git).
  --release-suffix TEXT     Specifies release suffix. Allows to override
                            default generated:{current_time}.{sanitized_curren
                            t_branch}{git_desc_suffix}
  --default-release-suffix  Allows to use default, packit-generated, release
                            suffix when some release_suffix is specified in
                            the configuration.
  -r, --root TEXT           Uses specified chroot configuration. If ends with
                            '.cfg', then it is treated as full path to the
                            mock configuration.
  --default-resultdir       Use the default result directory from mock
  --resultdir DIRECTORY     Specifies the resultdir option for ‹mock› command,
                            for details see mock(1)
  -p, --package TEXT        Package to build, if more than one available, like
                            in a monorepo configuration. Use it multiple times
                            to select multiple packages.Defaults to all the
                            packages listed inside the config.
  -h, --help                Show this message and exit.