-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
package.json conflicts when adding to OpenUPM #30
Comments
Hi @ashblue, Thanks for creating this project. I speak for OpenUPM, a platform collects and builds open-source UPM packages. Basically, we monitor Git Tags and create versioned UPM there, then the developer can install the package from our registry. I won't say it's a standard way (thanks for @shniqq), but I'd like to help to find a workaround to make this package available on the platform.
I propose a workaround to fix all these two issues at once, by adding an another publish script like the publish-nightly.sh. Basically, when you publish a new version, you run the new script to push the (built) dist folder to a new branch named
|
First off thank you both, I always appreciate constructive criticism. My project (and several others) runs on a Unity package generation system called Oyster. Right now my system deploys several automated things with versioning built around NPM (which was the only available system at the time for this sorta thing). That said, let me sum up what I might be able to do in the future based on your feedback for OUPM.
Considering the above it might be a while before I can address this and I might close the issue if it goes stale before I can get to it. That said I have entered a ticket into my backlog for this. I'm working on a large telehealth project connected to the pandemic atm, so my time has been a little limited to provide new features. Won't always be the case though. In short, if there are some minor changes you need to make to the build scripts I'm more than happy to pull in a merge request :) If not might be a little while till I get to this. |
If you're okay about this, then the future tagged version (new Git tag), will contain only one package.json with the name
Good to know it's a bug.
If you're okay to rename the root package.json name then you don't need to do this at all. All I proposed before is the workaround based on not updating the root package.json name. Just in case you want to learn about how to add extra stuff to work with Semantic Release, I wrote an article before: https://medium.com/openupm/how-to-maintain-upm-package-part-2-f352fbf5f87c#6bf4. It basically runs semantic release, then a custom script, then tags it as a special versioned tag. |
@favoyang sorry for the delayed response. Finally got around to upgrading my underlying package generator code and this came up (my day job is COVID19 related, so I've been crazy busy). It sounds like I just need to fix the package.json versioning on For the Trying to tidy things up with the underlying package generator so it just makes OUPM friendly packages with zero effort (https://github.com/ashblue/oyster-package-generator). |
@ashblue I revisited the thread. Basically, you have two package.json files with the same package name located in different folders. OpenUPM build pipelines just checkout your repository and search for the package.json with a given package name. In this case, it will pick the one at the root path. We don't support the The package YAML file you mentioned is located at the OpenUPM repository's curated list folder https://github.com/openupm/openupm/tree/master/data/packages. You can create this file (PR) by using our helper form: https://openupm.com/packages/add/. There's already a PR at openupm/openupm#1491 waiting to merge. To make clear, you are suggested to,
Just let me know if this works for you. Then I will merge openupm/openupm#1491. |
Sounds good. I have to preserve the https://github.com/ashblue/fluid-behavior-tree/blob/master/publish-nightly.sh PS Thanks for your patience on this. I'm sure you're super busy running a huge tool like OUPM. |
It will work as well. Notice that OpenUPM won't track Git tags. So you need to prepare a separated Git tag from the build branch. i.e.
|
Hmm, I think the |
I think all you need to do is after running the I wrote a blog doing similar things, but that's based on GitHub actions - https://medium.com/openupm/how-to-maintain-upm-package-part-2-f352fbf5f87c#6bf4
|
This is technically a feature request and not an open issue. So I'm moving this to a discussion. |
Hi, I wanted to add this package to the OpenUPM registry, but as mentioned here there are some issues with the fact that there are two
package.json
files in this project.As discussed over there, this package has been published already, and adjusting the
package.json
to be compatible with OpenUPM might/will break the existing way of publishing it. In my opinion OpenUPM is the more "standard" way of distributing a Unity-specific package compared to the npmjs registry - any chance the suggested changes could be made?Could also attempt to make the changes myself, but wanted to discuss with the maintainers here first before digging into it.
Cheers!
The text was updated successfully, but these errors were encountered: