[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why ban underscores?
From: |
Tobias Geerinckx-Rice |
Subject: |
Why ban underscores? |
Date: |
Sun, 04 Apr 2021 22:49:45 +0200 |
Guix, Ludo',
I was surprised by this commit:
--8<---------------cut here---------------start------------->8---
commit 426ade6c8bdab243da719e369a887284368179bb (upstream/master)
Author: Xinglu Chen <public@yoctocell.xyz>
import: go: Replace underscores with hyphens in package names.
As per section '16.4.2 Package Naming' in the manual, use
hypens
[sic] instead of underscores in package names.
* guix/import/go.scm (go-module->guix-package-name): Replace
underscores with hyphens.
Signed-off-by: Leo Famulari <leo@famulari.name>
--8<---------------cut here---------------end--------------->8---
Indeed, underscores were explicitly banned in 2014 (commit
25083588). Why?
Where's the advantage in renaming the following packages from
their canonical names?
--8<---------------cut here---------------start------------->8---
λ ./pre-inst-env guix lint -c name # not upstream yet :-)
guix/packages.scm:464:2: efi_analyzer@0.0.0-0.77c9e3a: name should
not contain '_'
gnu/packages/file-systems.scm:606:10: jfs_fsck-static@1.1.15: name
should not contain '_'
gnu/packages/installers.scm:36:12: nsis-x86_64@3.05: name should
not contain '_'
gnu/packages/mingw.scm:47:12: mingw-w64-x86_64@8.0.0: name should
not contain '_'
gnu/packages/mingw.scm:47:12: mingw-w64-x86_64-winpthreads@8.0.0:
name should not contain '_'
gnu/packages/perl.scm:2264:10: perl-crypt-unixcrypt_xs@0.11: name
should not contain '_'
gnu/packages/python-web.scm:2528:10: python-requests_ntlm@1.1.0:
name should not contain '_'
gnu/packages/ruby.scm:5450:10: ruby-progress_bar@1.1.0: name
should not contain '_'
gnu/packages/ruby.scm:9222:10: ruby_version@1.0.2: name should not
contain '_'
gnu/packages/ruby.scm:4808:10: ruby-data_uri@0.1.0: name should
not contain '_'
--8<---------------cut here---------------end--------------->8---
I'd rather change the manual to allow underscores than blacklist
them, but am curious why they were cancelled in the first place.
Kind regards,
T G-R
signature.asc
Description: PGP signature
- Why ban underscores?,
Tobias Geerinckx-Rice <=