#💎-mirror

📦 https://github.com/needle-mirror. Reference repository for all unity packages, with history, changelogs, Twitter bot and RSS feed.

🧵 Threads (2)

marwi123

You mean when someone publishes a new assetstore version or updates on your asset status / queue info?

codestage

Yeah, that's totally fair point, and it still can be monitored as RSS with existing third party services like IFTTT, no need to duplicate those, so scratch that!

0lento

not sure if that's been mentioned somewhere on the instructions, just found it handy for my own uses

hybridherbst

Haha I was aware that this exists but for some reason never thought about that this is immediately useful for the mirror repos 😄

0lento

yeah it's super handy. I have notifications for the RSS and can cherry-pick the packages I want to track for changes, no need to manually poll anything (or separately register to any RSS service)

hybridherbst

They recently moved it from "some quicksearch dev's GitHub" to the Unity GitHub at least

hybridherbst

I think it's one of those "we need this but we won't actually commit to maintaining it" things

hybridherbst

Version of Roslyn compiler distributed as package, which enables the use of Roslyn source generators for code generation.

marwi123

It's only 2,746 changed files with 151,794 additions and 58,005 deletions after all 😅

hybridherbst

You mean because it took 6 months to bubble through being public? 🙂 Or (more likely?) someone forgot to adjust the Changelog properly

marwi123

Well it apparently wasnt released until now - looks like all these entities versions took 6 months?

huh.how

It's awesome having Mirror be so on top of releases, would be stuck trying to refresh the official docs or having to download the package otherwise

huh.how

Me too. I've found using them a little temperamental in a non-unity project with Rider, but they open a door for so much

hybridherbst

Sorry for the noise in <#904689193370918913> - there was a credentials issue and Mirror wasn't running for a while. Churning through releases now 🚜

mikesky

Thanks for setting this up - I had a newtonsoft JSON conflict with another registry, and it was easier to fork and remove the unity's version dependency while I wait for a proper fix 🙌

krizzl0r

hey guys, distracting you from needle engine stuff 😉 i'm not too familiar with automating these things but surely you have some idea what'd be best: i want some kind of hook into when a specific package (com.unity.ide.visualstudio) gets updated. as this specific package sadly has no public repo i set up a fork from your mirror repo and would like to at least be notified of changes. even better would be kicking off some process to try and auto-merge.

🧵 Fork Sync 3 msgs
B

<@519636239658385605> Could you explain to me how you get the information for Needle Mirror? I mean, is there an official Unity packages registry where you can read a json or similar per package?

My use case is to make a kind of "dependabot" for the official Unity packages we have in the project and create PRs automatically.

Thanks.

hybridherbst

That being said, some packages are missing from there (e.g. some dependencies are hidden) - I believe the most complete list is actually what we have on the Mirror repo 🙂

B

Okay, I figured out how:

https://packages.unity.com/package_id

But I have a question, does anyone know how to differentiate between stable and non-stable packages? I was hoping there was some field in the json file but I don't see it.

In the UI of the package manager there are badges like "recommended" and it filters the previews if you don't have checked the checkbox, so somehow they must be able to get that information...

I hope that the way is not a regex on the version field of type ".-pre" or ".-exp"...

B

But this is just to find out which packages can be completed with the url I put without returning 404, isn't it? From there I don't see that I can get much more out of it.

hybridherbst

You get all available versions of these packages and which Unity version they're available for - what are you looking for?

B

What I have already explained.

Imagine that I have a project with N packages of which I want to recurrently check if there is a new version automatically and update it through a PR in github.

To do this I need to know for each package the URL where it lists the available versions and get the latest stable version compatible with my version of Unity.

With: https://packages.unity.com/package_id I can get everything I want except easily differentiate when a package version is stable or experimental...

What I ask is that, if someone knows a reliable way to differentiate this without regexing the "version" field.

B

Right now if I do it manually with the package manager UI is very little usable because since 2021.x they have removed the power to list the version history and hide the versions and you only see the one they want and mark as "recommended". It is difficult to find the rest of the versions without going to the changelog page of each package and see which is the latest version.

hybridherbst

There's a specific lifecycle that Unity's packages follow, with -exp, -pre, -rc and release versions

hybridherbst

Which version is considered "stable" is different for each Unity release; there's a file inside each Editor installation that contains information for which version of which specific package is "Verified" for that release; not each package has that, only some main ones

hybridherbst

So stability of packages depends not only on the version in the manifest but also on which Unity Editor release you're asking the question for.

B

Well, "verified" is relative and coming from Unity I don't trust much either haha.

Ok so I see that then I have to do a regex to verify the suffixes of "-exp" and "-pre", etc... This way I can get the latest "stable" version.

hybridherbst

We did have a machine run for a while that did nothing else but download all Unity releases and parse that information, but decided that it's not worth the effort for a very limited audience 🙂

huh.how

I presume <#904689193370918913> is down? I feel like there's been a few missing notable package updates and releases

hybridherbst

Oh that's strange, our internal log still happily churns through packages every hour or so. <@272528485732450305> do you think you could take a look?

marwi123

Ah interesting. Just the post to the public discord? Strange. Mirror on github+twitter seems to be fine and internal discord also runs

marwi123

And if you want to handle releases yourself ping me - we can now send release events/info to custom endpoints 🙂

mikuzando

hey there, idk if im in the correct place to ask, but i cant seem to find any specific channel or anything but

mikuzando

in the object it looks completely fine the UV, but if i go to UV editing, the UV map is completely wrong