Skip to content

Commit c9dccd9

Browse files
committed
Merge branch 'kayode-dev' of https://github.com/kayodegigz/packit.dev into kayode-dev
2 parents c2a110f + 7e0f15f commit c9dccd9

File tree

9 files changed

+22
-20
lines changed

9 files changed

+22
-20
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: validate-config
2+
title: validate
33
date: 2021-03-18T08:48:36+01:00
44
sidebar_position: 30
55
---
6-
# `packit validate-config`
6+
# `packit config validate`
77

88
Validate the Packit configuration file.
99

1010

1111
## Help
1212

13-
Usage: packit validate-config [OPTIONS] [PATH_OR_URL]
13+
Usage: packit config validate [OPTIONS] [PATH_OR_URL]
1414

1515
Validate PackageConfig.
1616

docs/cli/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ configuration files, like in the following examples:
9999
* [srpm](/docs/cli/srpm/)
100100
* [status](/docs/cli/status)
101101
* [sync-from-downstream](/docs/cli/sync-from-downstream/)
102-
* [validate-config](/docs/cli/validate-config)
102+
* [config validate](/docs/cli/config/validate)
103103
* [source-git init](/docs/cli/source-git/init)
104104
* [source-git update-dist-git](/docs/cli/source-git/update-dist-git)
105105
* [source-git update-source-git](/docs/cli/source-git/update-source-git)

docs/configuration/downstream_configuration_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a template for configuration of Packit's Fedora release automation (dist
1010
2. create a `packit.yaml`/`.packit.yaml` file in root directory of your dist-git repository in your `rawhide` branch
1111
and paste the content
1212
3. resolve the TODOs
13-
4. (optionally) run [`packit validate-config`](/docs/cli/validate-config) to make sure the configuration is valid
13+
4. (optionally) run [`packit config validate`](/docs/cli/config/validate) to make sure the configuration is valid
1414

1515
## Template
1616
```yaml

docs/configuration/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ or with a command from `rpm-build` package that will honor the macros:
2222

2323
```yaml
2424
get-current-version:
25-
- rpmspec -q --queryformat "%{VERSION}\n" *spec |head -n1
25+
- rpmspec -q --queryformat "%{VERSION}\n" --srpm *spec
2626
```
2727

2828
</details>

docs/configuration/index.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ files_to_sync:
344344

345345
:::info
346346

347-
This option is a successor to `synced_files` that has been already deprecated.
347+
This option is a successor to `synced_files` that has been deprecated and removed.
348348

349349
:::
350350

@@ -667,7 +667,7 @@ only one of these options.
667667
(*dict*) Macros to be explicitly defined or undefined at spec file parse time.
668668
To undefine a macro, set its value to `null`.
669669
This can be useful for instance when the spec file is OS-specific and Packit runs on a different OS
670-
(Packit Service currently runs on CentOS Stream 9).
670+
(Packit Service currently runs on Fedora 41).
671671

672672
For example, `%cargo_prep` macro used in Rust packages accepts `-V` option on EL but not on Fedora.
673673
To make sure Packit is able to parse a spec file that uses `%cargo_prep -V` on both OSes,
@@ -787,28 +787,30 @@ We will be happy for any feedback regarding it, [please contact us](https://gith
787787
(*string*) An option to set arguments of `csmock` (the tool used inside [OpenScanHub](https://openscanhub.fedoraproject.org/)). For instance, you can specify arguments like `--cppcheck-add-flag=--enable=style` to check styling issues as seen in [this example run](https://openscanhub.fedoraproject.org/task/10066/) triggered from [this](https://github.com/avahi/avahi/pull/641) testing pull-request on Avahi.
788788

789789
#### osh_options
790-
A set of additional options passed into osh-cli for additional functionality
790+
791+
A set of additional options passed to `osh-cli` for additional customizations of the functionality.
792+
791793
##### analyzer
792-
(*string*)
793-
list of analyzers to be passed to osh-cli use comma as a separator: e.g. "analyzer:gcc,clang,cppcheck"
794+
795+
(*string*) List of analyzers to be passed to `osh-cli`. Use comma as a separator, e.g. `gcc,clang,cppcheck`.
794796

795797
```yaml
796798
osh_options:
797799
analyzer: "gcc, shellcheck"
798800
```
799801

800802
##### config
801-
(*string*)
802-
Used to specify mock config name to be passed to osh-cli. If value is not set in yaml file, default value "fedora-rawhide-x86_64" is used.
803+
804+
(*string*) Used to specify mock config name to be passed to `osh-cli`. If value is not set in the config, default value `"fedora-rawhide-x86_64"` is used.
803805

804806
```yaml
805807
osh_options:
806808
config: "fedora-rawhide-x86_64"
807809
```
808810

809811
##### profile
810-
(*string*)
811-
Used to specify predefined scanning profile to be passed to osh cli.
812+
813+
(*string*) Used to specify predefined scanning profile to be passed to `osh-cli`.
812814

813815
```yaml
814816
osh_options:

docs/fedora-releases-guide/dist-git-onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Packit dist-git configuration.
5252
:::tip Configuration validation
5353

5454
For validation of the configuration, you can utilise
55-
Packit CLI command [`validate-config`](/docs/cli/validate-config) or our
55+
Packit CLI command [`config validate`](/docs/cli/config/validate) or our
5656
[pre-commit hooks](/posts/pre-commit-hooks#validate-config).
5757

5858
:::

docs/fedora-releases-guide/what-to-know.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ During service outages, maintain workflow using Packit CLI:
6868
2. [Configure required tokens](https://packit.dev/docs/configuration#user-configuration-file)
6969
3. Verify setup (if not already working in service):
7070
- Follow [dist-git onboarding guide](https://packit.dev/docs/fedora-releases-guide/dist-git-onboarding)
71-
- Validate config with `packit validate-config`
71+
- Validate config with `packit config validate`
7272

7373
#### Troubleshooting Issues
7474

docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ For downstream jobs, Packit always loads the config from the default branch of t
246246
:::tip
247247

248248
For validation of the configuration, you can utilise
249-
Packit CLI command [`validate-config`](/docs/cli/validate-config) or our
249+
Packit CLI command [`config validate`](/docs/cli/config/validate) or our
250250
[pre-commit hooks](/posts/pre-commit-hooks#validate-config).
251251

252252
:::

posts/pre-commit-hooks/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To try, add this to your `.pre-commit-config.yaml`
4646
4747
Packit uses a [YAML configuration file](https://packit.dev/docs/configuration)
4848
in an upstream repository.
49-
We have a [packit validate-config](https://packit.dev/docs/cli/validate-config) command
49+
We have a [packit config validate](https://packit.dev/docs/cli/config/validate) command
5050
to check it, but it's easy to forget (to run it) and notice a typo after you
5151
committed and pushed the changes and waited for some time for Packit to tell you
5252
that in a PR.
@@ -57,7 +57,7 @@ It's much faster to catch the problem before committing and/or pushing the chang
5757
5858
This hook runs (only if there's been a change in the `.packit.yaml`)
5959
`packit` in a container (from [our image](https://quay.io/repository/packit/packit)),
60-
mounts your sources inside and runs the `packit validate-config`.
60+
mounts your sources inside and runs the `packit config validate`.
6161

6262
```yaml
6363
- repo: https://github.com/packit/pre-commit-hooks

0 commit comments

Comments
 (0)