aplteam / Tatin

Tatin is a package manager for Dyalog APL
MIT License
25 stars 5 forks source link

Default parameter for ListPackages and PublishPackages #147

Open aplteam opened 9 months ago

aplteam commented 9 months ago

Currently, when ListPackages and PublishPackage are not provided with a target registry as in:

ListPackages

and

PublishPackage /path/2/package/ZIP

then [tatin] is assumed as the target.

It can well be argued that instead the Registry with the highest priority should be the target.

If there is only a single Registry with a priority greater than 0 (that's the default), then it does not make a difference.

But when the user builds up a chain of Registries, like:

Alias         Priority
============= ========
[private]     9000
[test]        4000
[department]  3000
[company]     2000
[tatin]       1000

then it does make a difference: [private] would then be the default target.

aplteam commented 8 months ago

The longer I ponder over this the more I think that this should default to https://tatin.dev if that's available.

If that's not available there should not be a default.

Making the highest one the default is a bit dangerous because when you change priorities the implicit default would potentially change as well. I don't want that!

aplteam commented 3 weeks ago
  1. The standard default will be https://tatin.dev/
  2. The user might specify a different default in the Tatin config file