You are not logged in.

#1 2024-04-26 23:21:51

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

[SOLVED]Struggling to Upload a new AUR Package

I'm working on adding a new AUR package "acer-wmi-battery-dkms-git", and I'm struggling to get the package online.

Can't make a Commit & Push due to the following:

> git push origin master:master
remote: error: The following error occurred when parsing commit        
remote: error: e487c81c5912016c990282c80b3444ba2b7e096d:        
remote: error: missing install file: acer-wmi-battery.install        
remote: error: hook declined to update refs/heads/master        
To ssh://aur.archlinux.org/acer-wmi-battery-dkms-git.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/acer-wmi-battery-dkms-git.git'

And sometimes, when everything goes well—or I'm able to commit my changes to the AUR package repo—and I try to git clone the package (either by creating & re-creating the package via SSH or cloning it to try to install it), I'm getting the following:

$ git clone https://aur.archlinux.org/acer-wmi-battery-dkms-git.git

Cloning into 'acer-wmi-battery-dkms-git'...
warning: You appear to have cloned an empty repository.
$ git -c init.defaultbranch=master clone ssh://aur@aur.archlinux.org/acer-wmi-battery-dkms-git.git

Cloning into 'acer-wmi-battery-dkms-git'...
warning: You appear to have cloned an empty repository.

I'm currently confused as to how I'm supposed to create an AUR package & publish it. I'm following through the AUR Submission Guidelines, yet there's really something that I'm missing that I'm not picking up on. (Also to note, I maintain 2 AUR packages myself, but one I adopted and the other I made; I don't frequently make new AUR packages to be fully familiar with the process.)

Any help will be appreciated. Thanks.

Last edited by ryanbarillos (2024-04-27 00:19:07)

Offline

#2 2024-04-26 23:27:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,612

Re: [SOLVED]Struggling to Upload a new AUR Package

The commit it specifies doesn't have the .install file included. You need to amend that commit and add it, you can't just add it later as each commit gets verified.

The other warnings are because you *haven't* successfully pushed to that repo

Offline

#3 2024-04-26 23:33:01

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

Re: [SOLVED]Struggling to Upload a new AUR Package

Scimmia wrote:

The commit it specifies doesn't have the .install file included. You need to amend that commit and add it, you can't just add it later as each commit gets verified.

The other warnings are because you *haven't* successfully pushed to that repo

A problem I have is that that should should be picked up by .gitignore

#Ignore everything
*

# Exclude these
!.gitignore
!PKGBUILD
!.SRCINFO
!.install

And yet when I try to commit & push, the .install file isn't getting uploaded.

Last edited by ryanbarillos (2024-04-26 23:33:41)

Offline

#4 2024-04-26 23:36:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,612

Re: [SOLVED]Struggling to Upload a new AUR Package

It's not getting uploaded specifically because you're ignore it. Why are you doing that?

The file isn't called .install, which is the only thing you're not ignoring there.

Last edited by Scimmia (2024-04-26 23:37:50)

Offline

#5 2024-04-26 23:39:10

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

Re: [SOLVED]Struggling to Upload a new AUR Package

Scimmia wrote:

It's not getting uploaded specifically because you're ignore it. Why are you doing that?

The file isn't called .install, which is the only thing you're not ignoring there.

Following something I picked up from binder_linux-dkms-git AUR package. I thought it'd be a convenient way to pick & choose what get pushed on git.

Last edited by ryanbarillos (2024-04-26 23:39:49)

Offline

#6 2024-04-26 23:41:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED]Struggling to Upload a new AUR Package

Instead of relying on lazy gitisms and .gitignore, just add the files you want to track to git.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2024-04-26 23:51:00

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

Re: [SOLVED]Struggling to Upload a new AUR Package

WorMzy wrote:

Instead of relying on lazy gitisms and .gitignore, just add the files you want to track to git.

Sure. I'll improve that.
However, I'm currently stuck what where to go from here. I'd like to just start over the process of making the AUR package and get me out of my entangled mess.
Currently seeing two branches, and I'm just really confused about this one.

https://imgur.com/a/Y6eyvZV

When looking at both firefox-blocktube & mssql-tools (two of the packages I maintain), they have 3 branches. But this new package? Why only 2?

Offline

#8 2024-04-26 23:54:51

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

Re: [SOLVED]Struggling to Upload a new AUR Package

Is there a known way to delete the AUR package repo that I made & start all over again?

Offline

#9 2024-04-27 00:16:00

ryanbarillos
Member
Registered: 2023-11-29
Posts: 27

Re: [SOLVED]Struggling to Upload a new AUR Package

https://aur.archlinux.org/packages/acer … y-dkms-git

Okay, IDK what major things I did (besides tweaking .gitignore). But played around and followed a guide by Brodie Robertson YT on uploading AUR package. Now it just works!

Offline

Board footer

Powered by FluxBB