All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.kotlin.org.virtuslab.bazelsteward.app.BazelStewardGitBranch.kt Maven / Gradle / Ivy

Go to download

Bazel Steward is a bot that helps you keep your library dependencies, Bazel and Bazel rules up-to-date.

There is a newer version: 1.5.2
Show newest version
package org.virtuslab.bazelsteward.app

import org.virtuslab.bazelsteward.core.GitBranch
import org.virtuslab.bazelsteward.core.library.LibraryId
import org.virtuslab.bazelsteward.core.library.Version

data class BazelStewardGitBranch(val libraryId: LibraryId, val version: Version) {
  val prefix = "$bazelPrefix/${sanitizeLibraryId(libraryId)}/"
  val gitBranch = GitBranch(prefix + version)

  companion object {
    const val bazelPrefix = "bazel-steward"
    private fun sanitizeLibraryId(libraryId: LibraryId) = libraryId.name.replace(":", "/")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy