all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently
@ 2024-06-21 16:45 MSavoritias
  2024-06-21 18:46 ` Simon Tournier
  2024-06-22 13:21 ` Richard Sent
  0 siblings, 2 replies; 5+ messages in thread
From: MSavoritias @ 2024-06-21 16:45 UTC (permalink / raw)
  To: 71700

Hey,

There was recently a discussion around SWH and it came up that `guix lint` actually by default when you run it without arguments, runs all the linters.
One of them being the archive linter that contacts SWH archive to let it know where to download the source code from (if its a public repo).

I would like to propose to make that linter off by default. Because:

The tool is name `guix lint` and it is not obvious (unless somebody runs --list-linters after --help) that it also does code archiving.
To that end it breaks the expectations of the person using the tool to have their code silently uploaded to SWH. (if its a public repo again)

What we should do instead:

Instead we should document more prominently in the manual that `guix lint` also does archiving and encourage people to actually archive the software they write to SWH.
(assuming they are the authors that is. A disclaimer to get permission from the author of the software should be also added if they are not.)
And for the usecase of Guix, they flag can just be turned on by default since as a project we are interested in code archival.

MSavoritias




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently
  2024-06-21 16:45 bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently MSavoritias
@ 2024-06-21 18:46 ` Simon Tournier
  2024-06-22 13:21 ` Richard Sent
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Tournier @ 2024-06-21 18:46 UTC (permalink / raw)
  To: MSavoritias; +Cc: 71700

Hi,

On Fri, 21 Jun 2024 at 19:45, MSavoritias <email@msavoritias.me> wrote:

> I would like to propose to make that linter off by default.

Somehow I disagree with this.  And I propose the generic approach that
allows to exclude any checkers from the package definition using the
field properties.

See <https://issues.guix.gnu.org/71697#1>.

Cheers,
simon




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently
  2024-06-21 16:45 bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently MSavoritias
  2024-06-21 18:46 ` Simon Tournier
@ 2024-06-22 13:21 ` Richard Sent
  2024-06-22 14:24   ` Msavoritias
  2024-06-22 15:30   ` Simon Tournier
  1 sibling, 2 replies; 5+ messages in thread
From: Richard Sent @ 2024-06-22 13:21 UTC (permalink / raw)
  To: MSavoritias; +Cc: 71700, zimon.toutoune

I think channel level configuration of some form for code archival is a
good idea so individual channels can choose to disable it. I also agree
that we should make the fact that guix lint does archival more
prominent.

I disagree with a statement that permission is required, but I'll avoid
rehashing the discussion ongoing in guix-devel. [1]

I think there is a good reason to support disabling archival at the
channel level. Simon, do you think your patch can/will manage that?

> Somehow I disagree with this.  And I propose the generic approach that
> allows to exclude any checkers from the package definition using the
> field properties.
> 
> See <https://issues.guix.gnu.org/71697#1>.

[1]: https://lists.gnu.org/archive/html/guix-devel/2024-06/msg00192.html

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently
  2024-06-22 13:21 ` Richard Sent
@ 2024-06-22 14:24   ` Msavoritias
  2024-06-22 15:30   ` Simon Tournier
  1 sibling, 0 replies; 5+ messages in thread
From: Msavoritias @ 2024-06-22 14:24 UTC (permalink / raw)
  To: Richard Sent; +Cc: 71700, zimon.toutoune

On Sat, 22 Jun 2024 09:21:01 -0400
Richard Sent <richard@freakingpenguin.com> wrote:

> I think channel level configuration of some form for code archival is a
> good idea so individual channels can choose to disable it. I also agree
> that we should make the fact that guix lint does archival more
> prominent.
> 
> I disagree with a statement that permission is required, but I'll avoid
> rehashing the discussion ongoing in guix-devel. [1]
> 
> I think there is a good reason to support disabling archival at the
> channel level. Simon, do you think your patch can/will manage that?

That is still missing the usage of people wanting to run `guix lint` without having a channel.
A channel level mechanism would be nice indeed but we still need a way to account for the archiving functionality for people who dont have channels or dont run channels.
The proposal of making it explicitely enabled would work as a solution for that use case.
That way the channel configuration would be to enable it instead of disabling it. opt-in/opt-out and all that.

It also avoids the mistake of not realizing it exists or is enabled and accidentally somebodys code ends up in SWH without them meaning too.
Not everybody reads the manual after all and we shouldnt do stuff we havent been explicitly required to do.

In short I would say a channel level mechanism would help to "automate" the opt-in of running `--archival` everywhere with `guix lint`.

MSavoritias

> > Somehow I disagree with this.  And I propose the generic approach that
> > allows to exclude any checkers from the package definition using the
> > field properties.
> > 
> > See <https://issues.guix.gnu.org/71697#1>.  
> 
> [1]: https://lists.gnu.org/archive/html/guix-devel/2024-06/msg00192.html
> 





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently
  2024-06-22 13:21 ` Richard Sent
  2024-06-22 14:24   ` Msavoritias
@ 2024-06-22 15:30   ` Simon Tournier
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Tournier @ 2024-06-22 15:30 UTC (permalink / raw)
  To: Richard Sent, MSavoritias; +Cc: 71700

Hi Richard,

On Sat, 22 Jun 2024 at 09:21, Richard Sent <richard@freakingpenguin.com> wrote:

> I think there is a good reason to support disabling archival at the
> channel level. Simon, do you think your patch can/will manage that?

Yeah it could be helpful.  However, my patch does not address at this
level.

I agree it could be an other complementary direction.  But the design at
channel needs to be thought a bit, IMHO.

Cheers,
simon




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-22 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 16:45 bug#71700: The Archiving functionality of guix lint should be opt-in and Documented more prominently MSavoritias
2024-06-21 18:46 ` Simon Tournier
2024-06-22 13:21 ` Richard Sent
2024-06-22 14:24   ` Msavoritias
2024-06-22 15:30   ` Simon Tournier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.