Github messages for voidlinux
 help / color / mirror / Atom feed
From: Piraty <Piraty@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] xbps-src: does not recognize a git-worktree as a git-repo
Date: Thu, 26 Mar 2020 18:38:13 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20393@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

New issue by Piraty on void-packages repository

https://github.com/void-linux/void-packages/issues/20393

Description:
### Expected behavior
xbps-src doesn't care if run from the main repo or a worktree
### Actual behavior
xbps-src complains about not being run from a git repository a lot during builds.
```
fatal: not a git repository: <...>
```

I'm not 100% sure it leads to fatal build errors, but I remember to see build failures happen in worktrees which didn't occur when building in the main repo (I have yet to find a case to prove this); this might have been related to incorrect SOURCE_DATE_EPOCH derivation or similar...

### Steps to reproduce the behavior
```
cd void-packages

branch=random-branch
main_repo="$(pwd)"

git branch $branch ; git worktree add /tmp/VOID-$branch $branch
cd /tmp/VOID-$branch $branch

# bootstrap using main hostdir (to not fetch binary-bootstrap again)
XBPS_HOSTDIR="$main_repo/hostdir" ./xbps-src binary-bootstrap
./xbps-src pkg which
```

             reply	other threads:[~2020-03-26 17:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 17:38 Piraty [this message]
2020-04-09  4:03 ` sgn
2020-04-09  8:12 ` Piraty
2020-04-09  8:21 ` sgn
2020-08-19 16:29 ` sgn
2020-08-19 16:29 ` [ISSUE] [CLOSED] " sgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20393@inbox.vuxu.org \
    --to=piraty@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).