scala.cli.commands.publish.checks

Members list

Type members

Classlikes

object CheckUtils

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
CheckUtils.type
final case class ComputeVersionCheck(options: PublishSetupOptions, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class DeveloperCheck(options: PublishSetupOptions, configDb: () => ConfigDb, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class LicenseCheck(options: PublishSetupOptions, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class NameCheck(options: PublishSetupOptions, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class OrganizationCheck(options: PublishSetupOptions, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class PasswordCheck(options: PublishSetupOptions, configDb: () => ConfigDb, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class PgpSecretKeyCheck(options: PublishSetupOptions, coursierCache: FileCache[Task], configDb: () => ConfigDb, logger: Logger, backend: SttpBackend[Identity, Any]) extends OptionCheck

Checks if:

Checks if:

  • keys for signing files are present in using directives (either PGP or GPG)
  • public key is uploaded to specified keyservers (if keys present are PGP)

If any of the above fails then try the following to find missing keys:

  • if secretKey using directive is already present then fill any missing from CLI options
  • if secretKey is specified in options use only keys from options
  • if --random-secret-key is specified and it's CI use new generated keys
  • default to keys in config if this fails throw

After previous step figures out which values should be used in setup do:

  • if it's CI then upload github secrets and write using directives as 'using ci.key env:GITHUB_SECRET_VAR'
  • otherwise write down the key values to publish.conf file in the same form as they were passed to options, if the values come from config don't write them to file

Finally upload the public key to the keyservers that are specified

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class RepositoryCheck(options: PublishSetupOptions, logger: Logger) extends OptionCheck

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ScmCheck(options: PublishSetupOptions, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class UrlCheck(options: PublishSetupOptions, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all
final case class UserCheck(options: PublishSetupOptions, configDb: () => ConfigDb, workspace: Path, logger: Logger) extends OptionCheck

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait OptionCheck
class Object
trait Matchable
class Any
Show all