Yay - possible to make diff output more readable?

I’ve been reading lately various topics here regarding AUR packages, best practices and have one question about diff output in yay.

Let’s say I’m updating VS Code from AUR and it’s just a minor update. In my understanding ideally diff should show that only version and checksums were changed in PKGBUILD. If I look it up on AUR itself - it’s indeed the case and is presented in an easy to read way:
https://aur.archlinux.org/cgit/aur.git/diff/?h=visual-studio-code-bin

Now, if I’m actually updating VS Code through yay and choose to show diffs, it spits back a wall of text which is a mess. And that’s only for one package. All I can see are sections in green with plusses meanining that something was added but it doesnt show comparison like linked AUR page: how it was and how it became.

Is there a way to make such output more concise/readable, like AUR page has? Or I’m missing something?

In my understanding AUR helpers like yay should make it easier to quickly compare such changes, but somehow it turns things to be the other way around.

yay output
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
diff --git /home/tony/.cache/yay/visual-studio-code-bin/PKGBUILD /home/tony/.cache/yay/visual-studio-code-bin/PKGBUILD
new file mode 100644
index 0000000..cb62fcd
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
+
+pkgname=visual-studio-code-bin
+_pkgname=visual-studio-code
+pkgver=1.77.3
+pkgrel=1
+pkgdesc="Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)"
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
+url="https://code.visualstudio.com/"
+license=('custom: commercial')
+provides=('code' 'vscode')
+conflicts=('code')
+install=$pkgname.install
+# lsof: needed for terminal splitting, see https://github.com/Microsoft/vscode/issues/62991
+# xdg-utils: needed for opening web links with xdg-open
+depends=(libxkbfile gnupg gtk3 libsecret nss gcc-libs libnotify libxss glibc lsof shared-mime-info xdg-utils alsa-lib)
+optdepends=('glib2: Needed for move to trash functionality'
+            'libdbusmenu-glib: Needed for KDE global menu'
+            'org.freedesktop.secrets: Needed for settings sync'
+             # See https://github.com/MicrosoftDocs/live-share/issues/4650
+            'icu69: Needed for live share' )
+source=(code.desktop code-url-handler.desktop ${_pkgname}-workspace.xml ${_pkgname}-bin.sh)
+source_x86_64=(code_x64_${pkgver}.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-x64/stable)
+source_aarch64=(code_arm64_${pkgver}.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-arm64/stable)
+source_armv7h=(code_armhf_${pkgver}.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-armhf/stable)
+
+# i686 uses "latest" instead of a specific version as it's not always updated in a timely manner
+source_i686=(code_ia32_${pkgver}.tar.gz::https://update.code.visualstudio.com/latest/linux-ia32/stable)
+# This generates cleaner checksums
+sha256sums=('10a5ee77a89fc934bcbd3e2a41a2ec4bd51d3cd048702f6d739ecec9eb3a7c4b'
+            '2264dd138b77358709aa49fb3a7fe7d1b05b7ab0715760d66958000107bdd3dc'
+            '24ba09a6398c9781ed7cb6f1a9f6f38ec204899ba1f33db92638bf6d3cb0aed6'
+            '8257a5ad82fa1f7dec11dfa064217b80df4cfec24f50cec7ca0ad62cf8295bfe')
+sha256sums_x86_64=('dc0333c196d8f455539b0b27f99d6b4fcffb66dca3f8de0e466b9cbfe19cc869')
+sha256sums_i686=('64360439cc2fa596838062f7e6f9757b79d4b775a564f18bad6cbad154bf850c')
+sha256sums_aarch64=('7ee081bef68f3b03b2daaa8adb15e99214a146fbf968f93aef6d7f300c856b04')
+sha256sums_armv7h=('c2cbea18148ba0ef47954ac7ba70768e70058cdf82b4ac6183516225183260ed')
+
+
+
+package() {
+  _pkg=VSCode-linux-x64
+  if [ "${CARCH}" = "aarch64" ]; then
+    _pkg=VSCode-linux-arm64
+  fi
+  if [ "${CARCH}" = "armv7h" ]; then
+    _pkg=VSCode-linux-armhf
+  fi
+  if [ "${CARCH}" = "i686" ]; then
+    _pkg=VSCode-linux-ia32
+  fi
+
+  install -d "${pkgdir}/usr/share/licenses/${_pkgname}"
+  install -d "${pkgdir}/opt/${_pkgname}"
+  install -d "${pkgdir}/usr/bin"
+  install -d "${pkgdir}/usr/share/applications"
+  install -d "${pkgdir}/usr/share/icons"
+  install -d "${pkgdir}/usr/share/mime/packages"
+
+  install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.rtf" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.rtf"
+  install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${_pkgname}.png"
+  install -m644 "${srcdir}/code.desktop" "${pkgdir}/usr/share/applications/code.desktop"
+  install -m644 "${srcdir}/code-url-handler.desktop" "${pkgdir}/usr/share/applications/code-url-handler.desktop"
+  install -m644 "${srcdir}/${_pkgname}-workspace.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}-workspace.xml"
+  install -Dm 644 "${srcdir}/${_pkg}/resources/completions/bash/code" "${pkgdir}/usr/share/bash-completion/completions/code"
+  install -Dm 644 "${srcdir}/${_pkg}/resources/completions/zsh/_code" "${pkgdir}/usr/share/zsh/site-functions/_code"
+
+  cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" -R
+
+  # Launcher
+       install -m755 "${srcdir}/${_pkgname}-bin.sh" "${pkgdir}/usr/bin/code"
+}
+
diff --git /home/tony/.cache/yay/visual-studio-code-bin/code-url-handler.desktop /home/tony/.cache/yay/visual-studio-code-bin/code-url-handler.desktop
new file mode 100644
index 0000000..5890a14
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/code-url-handler.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=Visual Studio Code - URL Handler
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/usr/bin/code --open-url %U
+Icon=visual-studio-code
+Type=Application
+NoDisplay=true
+StartupNotify=true
+Categories=TextEditor;Development;IDE;
+MimeType=x-scheme-handler/vscode;
+Keywords=vscode;
diff --git /home/tony/.cache/yay/visual-studio-code-bin/code.desktop /home/tony/.cache/yay/visual-studio-code-bin/code.desktop
new file mode 100644
index 0000000..e2f9bb2
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/code.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Visual Studio Code
+Comment=Code Editing. Refined.
+GenericName=Text Editor
+Exec=/usr/bin/code --unity-launch %F
+Icon=visual-studio-code
+Type=Application
+StartupNotify=false
+StartupWMClass=Code
+Categories=TextEditor;Development;IDE;
+MimeType=text/plain;inode/directory;application/x-code-workspace;
+Actions=new-empty-window;
+Keywords=vscode;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/code --new-window %F
+Icon=visual-studio-code
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.install /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.install
new file mode 100644
index 0000000..f7b11b3
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.install
@@ -0,0 +1,21 @@
+# Colored makepkg-like functions
+msg_blue() {
+    printf "${blue}==>${bold} $1${all_off}\n"
+}
+
+note() {
+    printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
+}
+
+all_off="$(tput sgr0)"
+bold="${all_off}$(tput bold)"
+blue="${bold}$(tput setaf 4)"
+yellow="${bold}$(tput setaf 3)"
+
+post_install() {
+    note "Custom flags should be put directly in: ~/.config/code-flags.conf"
+}
+
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>
...skipping...
+post_upgrade() {
+    post_install
+}
\ No newline at end of file
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
new file mode 100644
index 0000000..7650d63
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-bin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
+   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
+fi
+
+# Launch
+exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
diff --git /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
new file mode 100644
index 0000000..6a4a958
--- /dev/null
+++ /home/tony/.cache/yay/visual-studio-code-bin/visual-studio-code-workspace.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+   <mime-type type="application/x-visual-studio-code-workspace">
+     <comment>Visual Studio Code Workspace</comment>
+     <glob pattern="*.code-workspace"/>
+   </mime-type>
+</mime-info>

:: Proceed with install? [Y/n] 

Two things I would note:

  • paru has nicer, color coded diffs than yay
  • You don’t get a usable diff the first time or if you clean your yay cache too aggressively. It compares the current version to the last version but if you are getting the package for the first time the whole file will be considered a diff. It looks like that is what happening in the output above.

Here is what a paru diff looks like. Please note that it won’t look like this the first time, if you remove the old files or if you use multiple AUR helpers.

1 Like

Here is what’s strange: I’ve been using EOS as my main system since January, as well as VS Code from AUR. During that time it had multiple updates and I’ve never explicitly touched yay’s cache.
Double-checked it a moment ago and indeed I can see old VS Code versions in there.

The only difference is that prior to yay 12, I’ve never looked at diffs and started doing it only recently. So I’m not sure if that’s the correct intended behavior or no. GitHub page doesn’t show any reported issues similar to what I’m describing.

Thanks for the suggestion! Is there anything in particular I should pay attention to if I’ll decide to switch over? Or it’s safe to just install it from EOS repository and start using?

It is totally safe. It is very similar to yay

The engine was rewritten for version 12 so maybe that changed? It would be interesting to see what happens when it updates again.

1 Like

I’ve been using both yay and paru for a long time, and both have been surprisingly reliable, so far no real complaints.

Yeah, I’ve read the whole saga about partial update warnings people were complaining about :slight_smile:

Will make sure to check diffs during next VS Code update. Maybe it’s indeed not intended behavior, worth reporting as bug.

Think, I might have discovered a pattern here.

For some reason when updating AUR packages through yay, it shows that build files exist but doesn’t mark it as (installed)
[despite all previous versions being available inside yay’s cache]

1

Because of that, when I choose to show diffs, it basically outputs result similar to the one you get when you’re installing package, not updating it.

Anyone else noticed such behavior, when updating already installed packages from AUR in latest yay 12.0.4 ?

I’m not sure whether I should file a bug report on GitHub or maybe somehow I’m not using yay ‘correctly’ :man_shrugging:

There is definitely a bug in yay.

It’s not regarding your use case, that’s normal: if you already have the current, up to date version of the PKGBUILD in your yay cache, there is no need to download it. You get this when you download packages and then stop the update process.

But here is an example where it doesn’t do that, yet the diffs are wrong. I just updated librewolf and I got this:

:: 1 Packages to upgrade/install.
1  aur/librewolf-bin  112.0-1 -> 112.0.1-2
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
AUR Explicit (1): librewolf-bin-112.0.1-2
:: (1/1) Downloaded PKGBUILD: librewolf-bin
  1 librewolf-bin                    (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 librewolf-bin                    (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a

looks good so far, but when I view the diffs, it prints out everything with +:

diff --git /home/kresimir/.cache/yay/librewolf-bin/PKGBUILD /home/kresimir/.cache/yay/librewolf-bin/PKGBUILD
new file mode 100644
index 0000000..d2390ad
--- /dev/null
+++ /home/kresimir/.cache/yay/librewolf-bin/PKGBUILD
@@ -0,0 +1,115 @@
+# Maintainer: lsf <lsf at pfho dot net>
+
+pkgname=librewolf-bin
+provides=(${pkgname//-bin/""})
+pkgrel=2
+pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom."
+arch=(x86_64 aarch64)
+license=(MPL GPL LGPL)
+url="https://librewolf-community.gitlab.io/"
+depends=(gtk3 libxt startup-notification mime-types dbus-glib
+         nss ttf-font libpulse ffmpeg)
+makedepends=(git)
+optdepends=(
+  'hunspell-en_US: Spell checking, American English'
+  'libnotify: Notification integration'
+  'networkmanager: Location detection via available WiFi networks'
+  'pulseaudio: Audio support'
+  'speech-dispatcher: Text-to-Speech'
+  'xdg-desktop-portal: Screensharing with Wayland'
+)
+validpgpkeys=('662E3CDD6FE329002D0CA5BB40339DD82B12EF16') # librewolf maintainers
+backup=('usr/lib/librewolf/librewolf.cfg'
+        'usr/lib/librewolf/distribution/policies.json')
+options=(!emptydirs)
+install='librewolf-bin.install'
+
+_project_id=44042130
+_base_url=https://gitlab.com/api/v4/projects/${_project_id}/packages/generic/${pkgname//-bin/""}/${pkgver}-${pkgrel}
+_uploadpath_aarch64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-arm64-package.tar.bz2
+_uploadpath_x86_64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-x86_64-package.tar.bz2
+_uploadpath_sig_aarch64=${_uploadpath_aarch64}.sig
+_uploadpath_sig_x86_64=${_uploadpath_x86_64}.sig
+_source_tag="${pkgver}-${pkgrel}"
+source=(
+  "git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}"
+source=(
+  "git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}"
+  default192x192.png
+  librewolf.desktop
+)
+# source_aarch64=("${_uploadpath_aarch64}" "${_uploadpath_sig_aarch64}")
+# source_x86_64=("${_uploadpath_x86_64}" "${_uploadpath_sig_x86_64}")
+source_aarch64=("https://gitlab.com/librewolf-community/browser/bsys6/-/jobs/4139609098/artifacts/raw/librewolf-112.0.1-2-linux-arm64-package.tar.bz2")
+source_x86_64=("https://gitlab.com/librewolf-community/browser/bsys6/-/jobs/4139609097/artifacts/raw/librewolf-112.0.1-2-linux-x86_64-package.tar.bz2")
+sha256sums=('SKIP'
+            '959c94c68cab8d5a8cff185ddf4dca92e84c18dccc6dc7c8fe11c78549cdc2f1'
+            '21054a5f41f38a017f3e1050ccc433d8e59304864021bef6b99f0d0642ccbe93')
+sha256sums_x86_64=('66d7f94c3c5b1db62784e2156b18e9104f2f4c605ba5b29d22d87c87f41ffc68')
+sha256sums_aarch64=('c074aa32f2124c394cbe5dc9adfd39d1185d81634dd5f540f8742858ecc2f7c1')
+
+package() {
+  # Yep, that's somewhat redundant. But it works.
+  install -dm 755 ${pkgdir}/usr/lib/librewolf
+  install -dm 755 ${pkgdir}/usr/bin
+  cp -r "${srcdir}"/${pkgname//-bin/""}/* "${pkgdir}"/usr/lib/librewolf
+

etc… etc…

It is as if the package was cleanly installed.

Thanks for the confirmation! Glad to hear it has nothing to do with me messing things up somehow.

Hm, I believe I didn’t interrupt update process the first time I got same output as yours when selecting show diffs.

And here is another cherry on top:

==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> I

Proceeds with installation instead of showing diffs. Again in such case it doesn’t treat such process as updating, but rather as a clean install.

You should report it upstream if it isn’t already. He has been good about fixing issues as they are identified.

2 Likes

Will do and marking this thread as solved :+1:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.