Skip to content

Conversation

@SquidDev
Copy link
Contributor

@SquidDev SquidDev commented Jan 15, 2025

Not tested, but should work. I don't believe the breaking changes in upload-artifact affect Minotaur.

Fixes #70 (via 771354e).

@SquidDev
Copy link
Contributor Author

So the problem here is that project "fred-3" doesn't exist. The only projects I can see on the staging instance are fabric-api, fabric-modpack, forge-modpack and weird-wares, so I don't know if you've changed the test data at some point?

@Prospector
Copy link
Member

Yeah, staging gets wiped from time to time. Weird that it depends on a specific project... seems like it should not be the case

@SquidDev
Copy link
Contributor Author

Yeah, it is just for logging. I could move that down the function after the debugMode/dry-run check?

String id = Objects.requireNonNull(api.projects().getProjectIdBySlug(ext.getProjectId().get()).join());
getLogger().debug("Uploading version to project {}", id);

By using System.getenv on a static final field, the environment variable
is never updated. This means you have to kill the Gradle daemon if you
forgot the token the first time!
They were using the remote one, which makes it impossible to test changes!
This either continues onwards when in debug mode, or throws a
descriptive exception (rather than an NPE).
@SquidDev
Copy link
Contributor Author

"This'll be a simple two line change" he said. Nothing's simple in Minecraft modding :D:.

There's a remaining issue with versioned dependencies also not existing on staging.

I'm assuming there's no test data your staging env is provisioned with every time? In that case, it might just be easier to point the plugin at prod?

@Prospector
Copy link
Member

Yeah, should probably just point at prod. Can use this project, we use it for testing elsewhere lol https://modrinth.com/mod/mudmod

Also improve error message in the event the dependency cannot be
resolved.
@Prospector Prospector merged commit d8543e9 into modrinth:master Feb 21, 2025
@SquidDev SquidDev deleted the bump-gh-actions branch February 21, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

NullPointerException on incorrect ID

2 participants