Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Crash when yarn's version plugin is installed #477

Open
jeffrson opened this issue Mar 22, 2022 · 6 comments
Open

Crash when yarn's version plugin is installed #477

jeffrson opened this issue Mar 22, 2022 · 6 comments
Labels
bug Something isn't working external

Comments

@jeffrson
Copy link

Describe the bug

yarn monodeploy is crashing, when yarn's version plugin is installed.

To reproduce

yarn plugin import version
yarn monodeploy --dry-run

Expected behavior

No crash - should work

  • OS: [e.g. Ubuntu 20.04, Mac OSX 10.14]: Win10, Debian11
  • Monodeploy Version: [e.g. 1.0] 2.8.20
  • Node Version: [e.g. 12.16.1] 17.7.2
@noahnu
Copy link
Contributor

noahnu commented Mar 23, 2022

What's your use case for using monodeploy alongside the version plugin? They're typically mutually exclusive. Either way, it definitely shouldn't crash. I'll take a look.

What version of yarn are you using? (I need to add this to the issue template 😄)

I'm working on a v3 release, so I wonder if it works with the v3 pre-release. If it does, I can backport the relevant fixes.

@jeffrson
Copy link
Author

Sure, the version plugin is not needed. It's been just my repository setup when I tried monodeploy.

I'm not happy with "version" because of what you call "implicit" dependencies. That's why I look into monodeploy, which seems pretty good (although it doesn't really work for me - that's the point of my question "how does it work").

I'm using yarn 3.2.0 (current stable).

@noahnu noahnu added the bug Something isn't working label Apr 10, 2022
@noahnu
Copy link
Contributor

noahnu commented Apr 24, 2022

I can reproduce on v3:

TypeError: Cannot read properties of undefined (reading 'fetchBase') (when initializing @yarnpkg/plugin-version, defined in /Users/noah/repos/repo/.yarnrc.yml)

@noahnu
Copy link
Contributor

noahnu commented Apr 24, 2022

Looks like the same issue as yarnpkg/berry#3857

@freshollie
Copy link

I'm getting a similar error with https://github.com/mhassan1/yarn-plugin-aws-codeartifact

TypeError: Cannot read properties of undefined (reading 'RegistryType') (when initializing @yarnpkg/plugin-aws-codeartifact

Comes from line

@noahnu
Copy link
Contributor

noahnu commented Mar 31, 2024

Monodeploy has been forked under a new name Monoweave. I've copied your issue over and will address it in the monoweave project.

monoweave/monoweave#82

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working external
Projects
None yet
Development

No branches or pull requests

3 participants