Skip to content

Conversation

@alexarchambault
Copy link
Contributor

@alexarchambault alexarchambault commented Jun 15, 2022

This tweaks things in the publish sub-command (allowing to list licenses or checksum types, better defaults, accept github as repository, …), and adds documentation for it.

@alexarchambault alexarchambault changed the title Publish tweaks Publish tweaks + documentation Jun 15, 2022
@alexarchambault alexarchambault force-pushed the publish-tweaks branch 5 times, most recently from df721c4 to 7973294 Compare June 15, 2022 17:35
@alexarchambault alexarchambault marked this pull request as ready for review June 16, 2022 08:51
@alexarchambault alexarchambault force-pushed the publish-tweaks branch 3 times, most recently from 84e873f to d99e922 Compare June 21, 2022 14:17
@alexarchambault alexarchambault requested a review from Gedochao June 21, 2022 15:51
When setting up publishing from CI, version / computeVersion is the only
missing parameter to publish locally. This allows to have "publish
local" work after that setup.
--secret-key and --secret-key-password, so that users can specify things
like
```
--secret-key config:pgp.secret-key --secret-key-password config:pgp.secret-key-password
```
Copy link
Member

@romanowski romanowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have comments mostly related to docs.

Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in code LGTM.

@alexarchambault alexarchambault force-pushed the publish-tweaks branch 2 times, most recently from 223cdf4 to 20422b6 Compare June 23, 2022 17:01

To override this default value, set the `publish.computeVersion` directive, like
```scala
//> using publish.computeVersion "git:tag"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should link here to a doc explaining what computeVersions are supported and how each work

provided as a convenience.

<!-- TODO Automatically generate that? -->
| | `using` directive | Command-line option | Example values | Notes |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we shouldn't explain what options means, since Licences is self-descriptive but VSC may not be

Copy link
Member

@romanowski romanowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left some comments but they can be applied in the follow-up.


### Other pre-defined repositories

All pre-defined repositories accepted by coursier, such as `jitpack` or `sonatype:snapshots`, are accepted as repositories for publishing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Coursier have a piece of doc about these repositories? If so, can we link it?

@romanowski romanowski merged commit 66dfa78 into VirtusLab:main Jun 24, 2022
@alexarchambault alexarchambault deleted the publish-tweaks branch July 14, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants