Comments (3)
List of initial problems:
-
Test-Chocolatey
invokeschoco
, but on linux it will bechoco.exe
which is not executable. I've created a shell scriptchoco
to workaround this. Instead,Test-Chocolatey
could fall back to looking formono
, and/or invoking something likemono choco.exe
. The user then needs to setMONO_PATH
appropriately, but this isnt working for me yet. -
Test-AdminUser
fails badly withError checking user administrator priviledges
Windows Principal functionality is not supported on this platform.
Must be running with administrator priviledges for Fudge to fully functionEasy 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 differentInvoke-Chocolatey
, so the CLI args need to be passed through tochoco pack
.choco -v
doesnt need '--allow-unofficial'; there might be a few more which dont. Other actions that useInvoke-Chocolatey(Action)
and dont pass args from the CLI:Remove-Fudgefile
,Restore-Fudgefile
,New-Fudgefile
,Invoke-FudgePrune
,Invoke-FudgeClean
. The alternative is forInvoke-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 beWrite-Fail
and should return an exit code
from fudge.
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.
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)
- Import packages.config
- Show version installed instead of "latest" HOT 5
- Show progress bar / duration per package
- Retry choco installs which timeout HOT 1
- PSScriptAnalyzer results HOT 1
- Non-choco sources HOT 5
- Choco package dependency tracking HOT 2
- Per-package hooks which can modify the config HOT 4
- Yaml Fudgefile HOT 8
- Add fudge to PATH in choco package
- Distribute next release onto PSGallery
- Spelling priviledges
- Latest version detection not always working HOT 5
- Fudgefile.psd1 support
- StrictMode
- Tweaks to improve usage of copied Fudge HOT 1
- Report extra choco packages installed
- Update-FudgeEnvironmentVariables missing HOT 2
- Fudge prune does not include dependencies from Fudgefile items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fudge.