-
Notifications
You must be signed in to change notification settings - Fork 601
add test specs #15845
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
base: tomls/base/main
Are you sure you want to change the base?
add test specs #15845
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,119 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary: Converts markdown into roff (man pages) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: go-md2man | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check warning on line 2 in base/comps/go-md2man/go-md2man.spec
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version: 2.0.2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Release: 1%{?dist} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+4
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| License: MIT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 5 in base/comps/go-md2man/go-md2man.spec
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Vendor: Microsoft Corporation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Distribution: Azure Linux | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Group: Tools/Container | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| URL: https://github.com/cpuguy83/go-md2man | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Source0: https://github.com/cpuguy83/go-md2man/archive/v%{version}.tar.gz#/go-md2man-%{version}.tar.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 10 in base/comps/go-md2man/go-md2man.spec
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+10
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BuildRequires: golang | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 11 in base/comps/go-md2man/go-md2man.spec
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BuildRequires: which | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BuildRequires: which |
Copilot
AI
Feb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vendor: and Distribution: appear again after %description. At that point they will be treated as part of the package description text (not header tags), which is likely unintended and duplicates the header metadata. Remove these lines or move any intended tag definitions into the header section.
| Vendor: Microsoft Corporation | |
| Distribution: Azure Linux |
Check warning on line 28 in base/comps/go-md2man/go-md2man.spec
GitHub Actions / review / Spec Review
No %check section; Go packages should run unit tests (and go_vendor_license_check when vendored). (Ref: https%3A//docs.fedoraproject.org/en-US/packaging-guidelines/Golang/)
Copilot
AI
Feb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The %setup ... -c + absolute cd %{_topdir}/BUILD/... approach creates a nested source dir and hard-codes build paths, making the spec harder to maintain and more brittle across build environments. Prefer a single top-level source dir and relative/standard macros (e.g., %{_builddir}) so subsequent sections don’t depend on the nested layout.
| %setup -q -n %{name}-%{version} -c | |
| %build | |
| export GOPATH=%{OUR_GOPATH} | |
| export GOCACHE=%{OUR_GOPATH}/.cache | |
| export CGO_ENABLED=0 | |
| export GO111MODULE=on | |
| cd %{_topdir}/BUILD/%{name}-%{version}/go-md2man-%{version} | |
| go build -mod vendor -o go-md2man | |
| %install | |
| mkdir -p "%{buildroot}%{_bindir}" | |
| cp -aT go-md2man-%{version}/go-md2man %{buildroot}%{_bindir}/go-md2man | |
| # copy legal files | |
| mkdir -p %{buildroot}%{_docdir}/%{name}-%{version} | |
| cp go-md2man-%{version}/LICENSE.md %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE.md | |
| %setup -q -n go-md2man-%{version} | |
| %build | |
| cd go-md2man-%{version} | |
| export GOPATH=%{OUR_GOPATH} | |
| export GOCACHE=%{OUR_GOPATH}/.cache | |
| export CGO_ENABLED=0 | |
| export GO111MODULE=on | |
| go build -mod vendor -o go-md2man | |
| %install | |
| cd go-md2man-%{version} | |
| mkdir -p "%{buildroot}%{_bindir}" | |
| cp -aT go-md2man %{buildroot}%{_bindir}/go-md2man | |
| # copy legal files | |
| mkdir -p %{buildroot}%{_docdir}/%{name}-%{version} | |
| cp LICENSE.md %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says “set to a future date for now”, but
eol_dateis currently1900-01-01(a past date). Please update the comment to match the current placeholder strategy, or updateeol_dateif the intent really is to use a future placeholder.