Code Monkey home page Code Monkey logo

Comments (6)

pauby avatar pauby commented on August 24, 2024

@PietJankbal Chocolatey CLI uses Windows PowerShell as it's host. Your 'Steps To Reproduce' don't provide enough information to reproduce the problem.

Running it here using Chocolaety CLI 2.2.2 I get the following:

image

My first suggestion is that you are using an unsupported open-source version of Chocolatey CLI and that you upgrade to 2.2.2 and try it again. If that doesn't work please go back to your first comment and edit it to provide all of the information rquired in 'Steps To Reproduce' and 'Environment'.

from chocolatey-packages.

PietJankbal avatar PietJankbal commented on August 24, 2024

Hi, I forgot to mention that I disabled the builtin powershell host. So first I ran:

choco.exe feature disable --name=powershellHost

from chocolatey-packages.

pauby avatar pauby commented on August 24, 2024

Chocolatey packages are only tested for working on Windows PowerShell.

If you want to submit a PR to update the package to allow it to work on both Windows PowerShell and PowerShell Core, then we could look at that. If not, I don't think this will get any traction and will automatically close.

from chocolatey-packages.

PietJankbal avatar PietJankbal commented on August 24, 2024

Well ok, then I think i will close this myself.
Nevertheless I would like to point out that I also opened a bugreport at PS Core, and they said to be careful using wildcards in Move-Item, and the difference in behaviour between PS Core and Windows PowerShell will not be fixed because of sane reasons.

See PowerShell/PowerShell#20521 (comment)

So maybe something to consider when writing new scripts.

from chocolatey-packages.

pauby avatar pauby commented on August 24, 2024

@PietJankbal The scenario that you are using (using PowerShell Core host with Chocolatey CLI scripts) isn't one that is common (I've never heard of it before). So this isn't an issue that the vast majority of people will run into.

Chocolatey CLI uses a Windows PowerShell host to run Chocolatey CLI scripts. Chocolatey CLI doesn't support PowerShell Core because it doesn't have to. Every Windows computer comes with Windows PowerShell.

Just to be clear on this repository. It is a community maintained repository, so when things need fixing / updating / changing, the expectation is that you submit those changes as a PR in the first instance.

Because the vast majority of people are never going to see this issue, I am guessing the community maintainers of this repository are unlikely to want to spend time fixing it.

Hopefully, that gives some context as to why the above comments were made.

from chocolatey-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.