You are not logged in.

#1 2020-03-07 13:22:12

WhizSid
Member
Registered: 2020-03-07
Posts: 2

Can not publish a new package - git push error

I want to publish my command line utility to arch linux user repository. I have created a PKGBUILD file and ran

makepkg --printsrcinfo > .SRCINFO

command.

This is my PKGBUILD file.

# Maintainer: WhizSid <whizsid@aol.com>
pkgname=jsonapiunit
pkgver=0.1.0
pkgrel=1
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="TypeScript like unit testing framework for testing REST JSON APIs."
url="https://github.com/whizsid/jsonapiunit"
license=('MIT')
source=('jsonapiunit::git+https://github.com/whizsid/jsonapiunit#tag=0.1.0')
md5sums=('SKIP')

build() {
    cd $pkgname
    cargo build --release --locked
}

package() {
    install -Dm 755 "$srcdir/$pkgname/target/release/${pkgname}" -t "${pkgdir}/usr/bin"
}

After that I have added both of these files via git and pushed.

Git giving me an error like below:-

Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 4 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 1.08 KiB | 1.08 MiB/s, done.
Total 8 (delta 1), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 11, in <module>
remote:     load_entry_point('aurweb==4.8.0', 'console_scripts', 'aurweb-git-update')()
remote:   File "/usr/lib/python3.8/site-packages/aurweb-4.8.0-py3.8.egg/aurweb/git/update.py", line 306, in main
remote: KeyError: 'pkgbase'
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/jsonapiunit.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/jsonapiunit.git'

Offline

#2 2020-03-07 14:25:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,818

Re: Can not publish a new package - git push error


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2020-03-07 14:55:59

WhizSid
Member
Registered: 2020-03-07
Posts: 2

Re: Can not publish a new package - git push error

This issue was solved after re-initialized the git repo.

rm -r .git
git init
git remote set-url origin <url>
git add .
git commit -m "<message>"
git push

Thank You Lone_Wolf!

Offline

Board footer

Powered by FluxBB