Skip to content
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

Failed to 'git pull' the latest updates. #615

Closed
Quadronick opened this issue Jun 9, 2020 · 18 comments
Closed

Failed to 'git pull' the latest updates. #615

Quadronick opened this issue Jun 9, 2020 · 18 comments

Comments

@Quadronick
Copy link

➜ aura -Aux --hotedit
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= AUR Packages to upgrade:
aura-git :: v3.0.0.r0.ge6cc0f5-1 -> v3.1.1.r3.g66160e5-1

aura >>= Saved package state.
aura >>= Determining dependencies...
aura >>= AUR Packages:
aura-git
aura >>= Continue? [Y/n] 
aura >>= Building aura-git...
aura >>= Failed to 'git pull' the latest updates.
aura >>= Would you like to continue anyway? [Y/n] 
aura >>= Every package failed to build.

~ took 2s 

Is there any way to perform clean build with workspace' wipe?
Maybe an -Aw key required that stands for --wipe?

@fosskers
Copy link
Owner

Thanks for reporting, I'll look into this.

@fosskers
Copy link
Owner

Actually yes, could you try aura -Aux --hotedit --force?

@Quadronick
Copy link
Author

It's actually hard to reproduce.
I'll try.

@Quadronick
Copy link
Author

Quadronick commented Jun 16, 2020

➜ aura -Aux --hotedit --force
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= AUR Packages to upgrade:
aura-git     :: v3.1.1.r3.g66160e5-1 -> 3.1.4.r1.gc0d0a34-1
brave-bin    :: 1:1.9.76-1           -> 1:1.10.90-1
keeweb       :: 1.14.2-1             -> 1.15.5-1
vscodium-bin :: 1.45.1-1             -> 1.46.0-1

aura >>= Saved package state.
aura >>= Determining dependencies...
aura >>= AUR Packages:
aura-git
brave-bin
keeweb
vscodium-bin
aura >>= Continue? [Y/n] 
aura >>= Building aura-git...
aura >>= Failed to 'git pull' the latest updates.
aura >>= Would you like to continue anyway? [Y/n] 
aura >>= Building brave-bin...
aura >>= Would you like to edit the PKGBUILD of brave-bin? [Y/n] n
==> Making package: brave-bin 1:1.10.90-1 (Tue 16 Jun 2020 02:04:17 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading brave-bin-1.10.90.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   641  100   641    0     0   3009      0 --:--:-- --:--:-- --:--:--  2995
100 99.7M  100 99.7M    0     0  2535k      0  0:00:40  0:00:40 --:--:-- 2667k
  -> Found brave-bin.sh
  -> Found brave-browser.desktop
  -> Found logo.png

As you can see your key/flag set doesn't work.

I have updated to 3.1.4 "manually" and will watch over it for some time.

@fosskers
Copy link
Owner

I don't actually own the aura-git AUR package, and so I have no control over the contents of its PKGBUILD. I notice that it doesn't install the vcs directory: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=aura-git#n46 So this may be an issue of directory permissions.

Could you try installing libumem-git and see if the same issue happens? Also at this point I'd recommend switching to one of the official packages, either aura-bin or aura. The contents of master (as provided by aura-git) aren't guaranteed to be stable/usable.

@Quadronick
Copy link
Author

Oh... I didn't know that aura-git isn't at your control. I'll reinstall the package. Thank you)!

@fosskers
Copy link
Owner

Shall we close this?

@Quadronick
Copy link
Author

Yes, I suppose. I still can't reproduce it. Sorry.

@mkoloberdin
Copy link

Also at this point I'd recommend switching to one of the official packages, either aura-bin or aura. The contents of master (as provided by aura-git) aren't guaranteed to be stable/usable.

I am experiencing the same issue with the official packages (tried both aura and aura-bin, v3.1.6):

$ sudo aura -Akxa ttf-google-fonts-git
aura >>= ttf-google-fonts-git PKGBUILD changes:
aura >>= Determining dependencies...
aura >>= AUR Packages:
ttf-google-fonts-git
aura >>= Continue? [Y/n] 
aura >>= Building ttf-google-fonts-git...
aura >>= Failed to 'git pull' the latest updates.

@fosskers fosskers reopened this Jul 24, 2020
@fosskers
Copy link
Owner

fosskers commented Jul 24, 2020

Thanks, I'll investigate with a clean docker image of Arch.

@fosskers
Copy link
Owner

In a fresh docker image with a fresh install of aura-bin, I was able to successfully build and install ttf-google-fonts-git.

When I investigated further, I found this:

[colin@35073582bdf3 cache]$ pwd
/var/cache
[colin@35073582bdf3 cache]$ ls
aura  aura-bin  fontconfig  ldconfig  pacman  private

... why would there be an aura-bin folder in here?

[colin@35073582bdf3 aura]$ pwd
/var/cache/aura
[colin@35073582bdf3 aura]$ ls
pkgbuilds  vcs

This checks out - aura automatically creates those folders if it notices them missing.

[colin@35073582bdf3 aura-bin]$ pwd
/var/cache/aura-bin
[colin@35073582bdf3 aura-bin]$ ls
pkgbuilds  src  states

Ah ha. These are the versions created by the installation process of aura-bin itself. The problem is then in aura-bin's PKGBUILD, there must be a pkgname variable being misused.

@fosskers
Copy link
Owner

fosskers commented Jul 31, 2020

I just released aura-3.1.6-2 onto the AUR with the path fixes. Could you test that out?

@Quadronick
Copy link
Author

➜ aura --version
                       
 __ _ _  _ _ _ __ _    Pacman v5.2.2 - libalpm v12.0.2
/ _` | || | '_/ _` |   Copyright (C) 2006-2020 Pacman Development Team
\__,_|\_,_|_| \__,_|   Copyright (C) 2002-2006 Judd Vinet
AURA Version 3.1.6     
 by Colin Woodbury     This program may be freely redistributed under
                       the terms of the GNU General Public License.
Aura Translators:      
 (Japanese) Onoue Takuro
 (Polish) Chris Warrick
 (Croatian) Denis Kasak / "stranac"
 (Swedish) Fredrik Haikarainen / Daniel Beecham
 (German) Lukas Niederbremer / Jonas Platte
 (Spanish) Alejandro Gómez / Sergio Conde / Max Ferrer
 (Portuguese) Henry Kupty / Thiago Perrotta / Wagner Amaral
 (French) Ma Jiehong / Fabien Dubosson
 (Russian) Kyrylo Silin / Alexey Kotlyarov
 (Italian) Bob Valantin / Cristian Tentella
 (Serbian) Filip Brcic
 (Norwegian) "chinatsun"
 (Indonesian) "pak tua Greg"
 (Chinese) Kai Zhang
 (Esperanto) Zachary Matthews
 (Dutch) Joris Blanken

~ 
➜ aura -Aux     
aura >>= Fetching package information...
aura >>= Comparing package versions...
aura >>= AUR Packages to upgrade:
inverse-icon-theme-blue-git :: r26.492df7a-1 -> r29.f47fcf7-1

aura >>= Saved package state.
aura >>= Determining dependencies...
aura >>= AUR Packages:
inverse-icon-theme-blue-git
aura >>= Continue? [Y/n] Y
aura >>= Building inverse-icon-theme-blue-git...
aura >>= Failed to 'git pull' the latest updates.
aura >>= Would you like to continue anyway? [Y/n] Y
aura >>= Every package failed to build.

@Quadronick
Copy link
Author

Quadronick commented Aug 11, 2020

Location of the downloaded repo:

➜ pwd    
/var/cache/aura/vcs/inverse-icon-theme-blue-git/inverse-icon-theme-blue-git

inverse-icon-theme-blue-git on  master [⇣!?] 
➜ ls -la 
total 2680
drwxr-xr-x 6 quad root     162 Jul  2 03:27 .
drwxr-xr-x 3 quad root      41 Jul  2 03:26 ..
drwxr-xr-x 8 quad root     213 Aug 11 15:54 .git
drwxr-xr-x 7 quad quad     138 Jul  2 03:26 Inverse-icon-theme
-rw-r--r-- 1 quad quad 2733508 Jul  2 03:27 inverse-icon-theme-blue-git-r26.492df7a-1-any.pkg.tar.xz
drwxr-xr-x 3 quad quad      41 Jul  2 03:26 pkg
-rw-r--r-- 1 quad quad     781 Jul  2 03:26 PKGBUILD
drwxr-xr-x 3 quad quad      32 Jul  2 03:26 src
-rw-r--r-- 1 quad root     417 Jul  2 03:26 .SRCINFO

inverse-icon-theme-blue-git on  master [⇣!?] 
➜ sudo git pull               
Updating c316370..c17232c
error: Your local changes to the following files would be overwritten by merge:
	PKGBUILD
Please commit your changes or stash them before you merge.
Aborting

So. IMO the easiest way to solve this is to remove PKGBUILD (or whole repo) somewhere in aura post-actions if "git clone" task failed.
Or just remove all repos from /var/cache/aura with some flag like -Ac or something, otherwise, we have to do it manually.

@fosskers
Copy link
Owner

Ok, I'm able to reproduce and have a proposed solution coming.

@fosskers
Copy link
Owner

I just released 3.1.7 with the proposed fix. Does it work for you?

@mkoloberdin
Copy link

I just released 3.1.7 with the proposed fix. Does it work for you?

Works for me.

@Quadronick
Copy link
Author

Yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants