Skip to content

Commit

Permalink
Try fixing Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jul 21, 2021
1 parent 72e2972 commit 0ba0336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TemporaryDirectoryManager(
/** Creates a unique temporary subdirectory. */
def temporarySubdirectory(prefix: String = ""): Path = {
val paddedPrefix = if (prefix != "") prefix + "-" else prefix
val randomSuffix = random.nextLong().toString.stripPrefix("-")
val randomSuffix = random.nextInt().toString.stripPrefix("-")
val path =
safeTemporaryDirectory.resolve(paddedPrefix + randomSuffix)
if (Files.exists(path))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.enso.librarymanager.published.repository

import nl.gn0s1s.bump.SemVer
import org.enso.cli.OS
import org.enso.distribution.FileSystem
import org.enso.editions.Editions.RawEdition
import org.enso.editions.{Editions, LibraryName}
Expand Down Expand Up @@ -94,6 +95,8 @@ abstract class DummyRepository {
)
}

private def npmCmd: String = if (OS.isWindows) "npm.cmd" else "npm"

/** Starts a server for the library repository.
*
* @param port port to listen on
Expand Down

0 comments on commit 0ba0336

Please sign in to comment.