Package Details: oh-my-posh 24.15.1-1

Git Clone URL: https://aur.archlinux.org/oh-my-posh.git (read-only, click to copy)
Package Base: oh-my-posh
Description: A prompt theme engine for any shell.
Upstream URL: https://github.com/JanDeDobbeleer/oh-my-posh
Keywords: oh-my-posh
Licenses: MIT
Submitter: wszqkzqk
Maintainer: wszqkzqk
Last Packager: wszqkzqk
Votes: 7
Popularity: 0.056236
First Submitted: 2022-10-20 13:30 (UTC)
Last Updated: 2024-12-20 01:16 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

mrlackride commented on 2024-11-21 22:02 (UTC)

New update if anyone encountered same issue since it was my first time getting such a problem, I had to rewrite version in PKGBUILD file and change SHA256sum, after making makepkg and use sudo pacman -U oh-my-posh-24.6.5-1-x86_64.pkg.tar.zst everything worked! Note: I cleaned pkgbuild and cache but for some reasons it saved old PKGBUILD file with old version

a821 commented on 2024-11-21 21:43 (UTC)

@mrlackride: make a fresh clone of the AUR repo and follow @pr0m1x's workaround below. If you have a previously cloned repo, it won't work if you just git pull (you get the old version).

mrlackride commented on 2024-11-21 19:27 (UTC) (edited on 2024-11-21 20:55 (UTC) by mrlackride)

I am not sure if this is only me but for some reasons I get old version reinstalled whilst newer available


:: Searching AUR for updates...
:: Searching databases for updates...
 -> Missing AUR Debug Packages: docker-desktop-debug  optimus-manager-qt-debug
 -> Orphan (unmaintained) AUR Packages: python-django-jsonfield
 -> Flagged Out Of Date AUR Packages: cava
:: 1 package to upgrade/install.
1  aur/oh-my-posh  24.6.4-1 -> 24.6.5-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==>
AUR Dependency (1): oh-my-posh-24.6.5-1
:: (1/1) Downloaded PKGBUILD: oh-my-posh
  1 oh-my-posh                               (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
  1 oh-my-posh                               (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
==> Making package: oh-my-posh 24.6.4-1 (Thu 21 Nov 2024 08:51:43 PM EET)
==> Retrieving sources...
  -> Found oh-my-posh-24.6.4.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    oh-my-posh-24.6.4.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: oh-my-posh
==> Making package: oh-my-posh 24.6.4-1 (Thu 21 Nov 2024 08:51:45 PM EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found oh-my-posh-24.6.4.tar.gz
==> Validating source files with sha256sums...
    oh-my-posh-24.6.4.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting oh-my-posh-24.6.4.tar.gz with bsdtar
==> Sources are ready.
 -> oh-my-posh-24.6.4-1 already made -- skipping build
==> Making package: oh-my-posh 24.6.4-1 (Thu 21 Nov 2024 08:51:51 PM EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
[sudo] password for mrlackride:
loading packages...
warning: oh-my-posh-24.6.4-1 is up to date -- reinstalling
warning: oh-my-posh-debug-24.6.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) oh-my-posh-24.6.4-1  oh-my-posh-debug-24.6.4-1

Total Installed Size:  24.22 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                 [#############################################] 100%
(2/2) checking package integrity                                               [#############################################] 100%
(2/2) loading package files                                                    [#############################################] 100%
(2/2) checking for file conflicts                                              [#############################################] 100%
(2/2) checking available disk space                                            [#############################################] 100%
:: Processing package changes...
(1/2) reinstalling oh-my-posh                                                  [#############################################] 100%
(2/2) reinstalling oh-my-posh-debug                                            [#############################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

pr0m1x commented on 2024-11-21 08:46 (UTC) (edited on 2024-11-21 08:47 (UTC) by pr0m1x)

@mrjxtr I also have the same problem. Temporary fix:

git switch -c master
git branch --set-upstream-to=origin/master master

mrjxtr commented on 2024-11-21 08:40 (UTC) (edited on 2024-11-21 08:42 (UTC) by mrjxtr)

When I try to update using yay -Syu there is a "No Current Branch" error. and when I cd into the directory git is ~/.cache/yay/oh-my-posh @8bd21b37 instead of master or main or anything else

❯ yay -Syu
[sudo] password for mrjxtr: 
:: Synchronizing package databases...
 core is up to date
 extra                       7.5 MiB  4.38 MiB/s 00:02 [############################] 100%
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 2 packages to upgrade/install.
2  extra/eza       0.20.8-1 -> 0.20.9-1
1  aur/oh-my-posh  24.6.4-1 -> 24.6.5-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 2
AUR Explicit (1): oh-my-posh-24.6.5-1
:: PKGBUILD up to date, skipping download: oh-my-posh
 -> error merging /home/mrjxtr/.cache/yay/oh-my-posh: fatal: No current branch.

a821 commented on 2024-07-04 06:23 (UTC)

@leonkacowicz: builds fine for me. Could you try with just makepkg to take yay out of the equation?

leonkacowicz commented on 2024-07-03 23:57 (UTC)

I'm getting this error msg:

~/.cache/yay/oh-my-posh/src/oh-my-posh-21.16.1/src/go.mod:3: invalid go version '1.22.3': must match format 1.23

ZhangHua commented on 2023-08-07 09:36 (UTC)

You must call "./${pkgname}" in line 23-25, because oh-my-posh is not in the $PATH absolutely.

ZhangHua commented on 2023-08-06 12:25 (UTC)

It seems that you forget to generate completions such as oh-my-posh.sh, oh-my-posh.fish and _oh-my-posh. Which results that there will no required files found when calling package()

What's more, I think you may set build.Version to $pkgver instead v$pkgver. Using v$pkgver results that the version string used for checking updates is changed to vv18.2.5 instead v18.2.5.

Sacro commented on 2023-07-19 17:28 (UTC) (edited on 2023-07-19 17:29 (UTC) by Sacro)

Please can you generate and add completions? This does it.

diff --git a/PKGBUILD b/PKGBUILD
index dae4e03..7f20c0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,11 @@ build() {
     export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"

     cd "$pkgname-$pkgver/src"
-    go build
+    go build -o "$pkgname"
+
+    "${pkgname}" completion bash > "${pkgname}.sh"
+    "${pkgname}" completion fish > "${pkgname}.fish"
+    "${pkgname}" completion zsh > "_${pkgname}"
 }

 package() {
@@ -28,4 +32,8 @@ package() {
     install -Dm 644 "../COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
     install -d "${pkgdir}/usr/share/oh-my-posh/themes"
     install -m 644 ../themes/* -t "${pkgdir}/usr/share/oh-my-posh/themes"
+
+    install -Dm 644 "${pkgname}.sh" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+    install -Dm 644 "${pkgname}.fish" "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"
+    install -Dm 644 "_${pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
 }