Skip to content

Commit

Permalink
chore: testing multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
florianow committed Mar 12, 2024
1 parent fdedd85 commit e1bf8ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/model/CollieHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export class CollieHub {
this.config.setProperty("colliehubVersion", collieHubVersion!);
}
try {
const latestTag = await this.git.getLatestTag(hubCacheDir);
//const latestTag = await this.git.getLatestTag(hubCacheDir);
const allTags = await this.git.getTags(hubCacheGitDir);
if (!allTags.includes(latestTag)) {
if (!allTags.includes(collieHubVersion)) {
throw new Error(
`version tag dont exist, possible are ${allTags} not exist`,
`version tag does not exist, possible are: ${allTags.split("\n")}`
);
}
} catch (error) {
Expand Down

0 comments on commit e1bf8ec

Please sign in to comment.