Difference between revisions of "Talk:VCS package guidelines"

From ArchWiki
Jump to: navigation, search
(Undo revision 253482 by Scimmia (talk) Nevermind, didn't notice they'd all been removed)
(Suggestions)
Line 6: Line 6:
 
Could we consider a guideline to use firewall-friendly protocols when possible (e.g. https://github.com/matplotlib/matplotlib.git instead of git://github.com/matplotlib/matplotlib.git)?
 
Could we consider a guideline to use firewall-friendly protocols when possible (e.g. https://github.com/matplotlib/matplotlib.git instead of git://github.com/matplotlib/matplotlib.git)?
 
--[[User:Mitch feaster|Mitch feaster]] 14:34, 15 November 2011 (EST)
 
--[[User:Mitch feaster|Mitch feaster]] 14:34, 15 November 2011 (EST)
 +
 +
----
 +
Since [[User:Thestinger|Thestinger]] decided to [https://wiki.archlinux.org/index.php?title=VCS_PKGBUILD_Guidelines&diff=253547&oldid=253546 protect] the entire page (for whatever reason):
 +
 +
1) Thestinger's [https://wiki.archlinux.org/index.php?title=VCS_PKGBUILD_Guidelines&diff=253555&oldid=253552 change] (7:03, 10 April 2013 (UTC)):
 +
''→‎Subversion:  $SRCDEST not necessary''
 +
 +
Wrong, see the [[VCS_PKGBUILD_Guidelines#Subversion|note]] you left behind. The VCS directory ({{ic|.svn}}) is not copied for SVN, which means it doesn't work:
 +
{{hc|[$srcdir]$ svnversion|
 +
Unversioned directory
 +
}}
 +
 +
2) Danielwallace's [https://wiki.archlinux.org/index.php?title=VCS_PKGBUILD_Guidelines&diff=253546&oldid=253520 change] (04:32, 10 April 2013 (UTC)):
 +
{{hc|pkgver() {
 +
  cd local_repo
 +
<s>−  git rev-list --count HEAD</s>
 +
+  echo $(git rev-list --count master).$(git rev-parse --short master)
 +
}
 +
- [...]
 +
|1142}}
 +
That's good but you left the title and the sample output intact. Also, the first example still uses {{ic|git describe --always}}.
 +
 +
--[[User:Det|Det]] ([[User talk:Det|talk]]) 16:41, 10 April 2013 (UTC)

Revision as of 16:41, 10 April 2013

Comments

I don't use cvs. How can you describe the pkgver for cvs (for pacman 4.1)? --Dracorp (talk) 09:31, 6 April 2013 (UTC)

Suggestions

Could we consider a guideline to use firewall-friendly protocols when possible (e.g. https://github.com/matplotlib/matplotlib.git instead of git://github.com/matplotlib/matplotlib.git)? --Mitch feaster 14:34, 15 November 2011 (EST)


Since Thestinger decided to protect the entire page (for whatever reason):

1) Thestinger's change (7:03, 10 April 2013 (UTC)):

→‎Subversion:  $SRCDEST not necessary

Wrong, see the note you left behind. The VCS directory (.svn) is not copied for SVN, which means it doesn't work:

[$srcdir]$ svnversion
Unversioned directory

2) Danielwallace's change (04:32, 10 April 2013 (UTC)):

pkgver() {
   cd local_repo
−  git rev-list --count HEAD
+  echo $(git rev-list --count master).$(git rev-parse --short master)
}
- [...]
1142

That's good but you left the title and the sample output intact. Also, the first example still uses git describe --always.

--Det (talk) 16:41, 10 April 2013 (UTC)