Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
6.27k stars 238 forks source link

Installing git package from a pkgbuild repo only sporadically adds it to devel.toml #1127

Open Quackdoc opened 10 months ago

Quackdoc commented 10 months ago

Affected Version

paru v2.0.1.r15.g81efb1f - libalpm v13.0.2

Description

When installing -git pkgbuilds from a self hosted pkgbuild repo, they will sporadically be added to devel.toml, and running --gendb doesn't add them either. Pkgbuilds can be very similar. The repo in question is https://github.com/Quackdoc/pkgbuild-scripts

Working pkgbuild

not working pkgbuild

Output

Include the FULL output of any relevant commands/configs

Don't cut parts of the input always include the FULL thing

paru.conf and pacman.conf are usually always relevant

➜  ~ paru --gendb
:: Querying AUR...
:: packages not in the AUR: clang13  ffmpeg-compat-59  flintqs  iced-workspaces-applet-git  jhentai  js78  libvterm01  
    linux-firmware-intel-git  llvm13-libs  nerd-fonts-meta  openrazer-meta  pipewire-media-session-docs  python-backcall  rdw4-git
    user-color-editor-git  vapoursynth-plugin-bm3dhip-git  vapoursynth-plugin-bm3dsycl-git  xdg-desktop-portal-shana-git  zn_poly

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
:: Looking for devel repos...

➜  ~ cat .local/state/paru/devel.toml | rg -i cosmic
[[cosmic-applets-git]]
url = "https://github.com/pop-os/cosmic-applets.git"
[[cosmic-applibrary-git]]
url = "https://github.com/pop-os/cosmic-applibrary.git"
[[cosmic-bg-git]]
url = "https://github.com/pop-os/cosmic-bg.git"
[[cosmic-comp-git]]
url = "https://github.com/pop-os/cosmic-comp.git"
[[cosmic-edit-git]]
url = "https://github.com/pop-os/cosmic-edit.git"
[[cosmic-icons-git]]
url = "https://github.com/pop-os/cosmic-icons.git"
[[cosmic-settings-git]]
url = "https://github.com/pop-os/cosmic-settings.git"
[[cosmic-term-git]]
url = "https://github.com/pop-os/cosmic-term.git

➜  ~ pacman -Qi | grep cosmic | grep "Name"
Name            : cosmic-applets-git
Name            : cosmic-applibrary-git
Name            : cosmic-bg-git
Name            : cosmic-comp-git
Name            : cosmic-edit-git
Name            : cosmic-files-git
Name            : cosmic-greeter-git
Name            : cosmic-icons-git
Name            : cosmic-launcher-git
Name            : cosmic-notifications-git
Name            : cosmic-osd-git
Name            : cosmic-panel-git
Name            : cosmic-randr-git
Name            : cosmic-screenshot-git
Name            : cosmic-session-git
Name            : cosmic-settings-daemon-git
Name            : cosmic-settings-git
Name            : cosmic-term-git
Name            : cosmic-workspaces-epoch-git
Name            : xdg-desktop-portal-cosmic-git

Paru.conf

➜  ~ cat ~/.config/paru/paru.conf 
[quackpkg]
Url = https://github.com/Quackdoc/pkgbuild-scripts
Depth = 4
#GenerateSrcinfo = true
#Path = /home/quack/code/pkgbuild-scripts/

pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
IgnorePkg   = amdvlk-git amdvlk
#IgnoreGroup =
#IgnorePkg  = virglrenderer-git
IgnorePkg = qemu-git qemu-arch-extra-git qemu-block-gluster-git qemu-block-iscsi-git qemu-guest-agent-git
IgnorePkg = mpv-full-git
IgnorePkg = flutter flutter-git
#IgnorePkg = wezterm-git
#IgnorePkg = mangohud-git mangohud-common-git
IgnorePkg = umr-git
IgnorePkg = crosvm-git
IgnorePkg = wayfire wf-config wayfire-plugins-extra
#IgnorePkg = yt-dlp-git
#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 20 

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[kde-unstable]
#Include = /etc/pacman.d/mirrorlist

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
#[options]
#CacheDir = /var/lib/repo/aur

#[aur]
#SigLevel = PackageOptional DatabaseOptional
#Server = file:///var/lib/repo/aur

#[local_repo]
#SigLevel = PackageOptional DatabaseOptional
#Server = file:///var/lib/repo/local_repo
Quackdoc commented 9 months ago

Seems like this is not limited to just localrepo packages but some aur packages too, possibly related to https://github.com/Morganamilo/paru/issues/1106 but the fix listed doesn't help me