Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.1 #21

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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