Skip to content

Commit

Permalink
Merge pull request #21 from ReviversMC/next/5.0.1
Browse files Browse the repository at this point in the history
5.0.1
  • Loading branch information
Cloudate9 authored Aug 11, 2022
2 parents 98bdf49 + a8e6133 commit 95968df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ plugins {
}

group = "com.github.reviversmc.themodindex.validation"
version = "5.0.0"
version = "5.0.1"

repositories {
mavenCentral()
maven("https://jitpack.io")
}

dependencies {
api("com.github.reviversmc:the-mod-index-api:9.1.1")
api("com.github.reviversmc:the-mod-index-api:9.2.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.github.reviversmc.themodindex.validation

import com.github.reviversmc.themodindex.api.data.IndexJson
import com.github.reviversmc.themodindex.api.data.ManifestJson
import com.github.reviversmc.themodindex.api.data.ManifestJsonWithOverrides
import kotlinx.coroutines.*
import kotlinx.coroutines.sync.Semaphore
import kotlinx.coroutines.sync.withPermit
Expand Down Expand Up @@ -116,12 +117,12 @@ fun main(args: Array<String>) {
launch {
manifestDownloadSemaphore.withPermit {
try {
val manifest: ManifestJson = json.decodeFromString(
val manifest = json.decodeFromString<ManifestJsonWithOverrides>(
File(
"$repoToCheck/${it.substringBefore(":")}",
"${it.substringAfter(":")}.json"
).readText()
)
).toManifestJson()
val currentlyChecked = checkedManifests.incrementAndGet()
try {
validateManifestRegex(manifest)
Expand Down

0 comments on commit 95968df

Please sign in to comment.