Code Monkey home page Code Monkey logo

Comments (3)

jayvdb avatar jayvdb commented on June 17, 2024 1

List of initial problems:

  • Test-Chocolatey invokes choco, but on linux it will be choco.exe which is not executable. I've created a shell script choco to workaround this. Instead, Test-Chocolatey could fall back to looking for mono, and/or invoking something like mono choco.exe. The user then needs to set MONO_PATH appropriately, but this isnt working for me yet.

  • Test-AdminUser fails badly with

    Error checking user administrator priviledges
    Windows Principal functionality is not supported on this platform.
    Must be running with administrator priviledges for Fudge to fully function

    Easy workaround is for Test-AdminUser to just return false on linux.

  • choco on linux replies with

    Chocolatey v0.10.14-beta-83-g501397c5 Custom unofficial builds are not allowed by default. To override this behavior, explicitly set --allow-unofficial.

    Fudge needs to add that --allow-unofficial , always on Linux, or just always always assuming it doesnt break anything. How silly that it needs a flag to run. That is a solution to a non-problem if I ever saw one.

    One possible workaround is for the user to add -args '--allow-unofficial' when invoking fudge, and then adding -Arguments $Arguments everywhere, as #56 only added it to most of the actions. pack is one with a different Invoke-Chocolatey, so the CLI args need to be passed through to choco pack. choco -v doesnt need '--allow-unofficial'; there might be a few more which dont. Other actions that use Invoke-Chocolatey(Action) and dont pass args from the CLI: Remove-Fudgefile, Restore-Fudgefile, New-Fudgefile, Invoke-FudgePrune, Invoke-FudgeClean. The alternative is for Invoke-Chocolatey to add --allow-unofficial. If it can always be added without side-effects, this is a good option. If it should only be added in some circumstances, then checking those circumstances here could be an annoying overhead.

  • action pack should not require admin privileges. Seems this is just an oversight, and needs to be added to the list $isAdminAction = @(... It seems to work ok without admin privs.

  • Most of the Write-Notice in Fudge.ps1 should be Write-Fail and should return an exit code

from fudge.

Badgerati avatar Badgerati commented on June 17, 2024

Oh yeah, there will be - Admin checking is a big one, as it only works on Windows. Also that Chocolately isn't for nix as well.

This is one that will be resolved via #61 and #53 - For rewriting Fudge as a module, I'm looking at using classes - to make multiple providers easier to support.

from fudge.

jayvdb avatar jayvdb commented on June 17, 2024

Also that Chocolately isn't for nix as well.

I have a reasonably working choco with chocolatey/choco#1827

I'm going to hack around the Fudge admin checking and see what else doesnt work. Im especially keen on seeing fudge/choco pack working, as that can be used to create fake empty packages that can be installed on Linux for mock/test/development purposes.

from fudge.

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.