Comments (3)
I'm not sure how things are sorted currently
It's a topological sort. The ordering is important as otherwise you'll install dependencies in the not the order specified in the Brewfile
.
but could it be done on package name?
It could but, due to the above, it should not be.
from homebrew-bundle.
It's a topological sort. The ordering is important as otherwise you'll install dependencies in the not the order specified in the
Brewfile
.
Fair enough. Although, I think that as long as tap
remains at the top then it's fine. FWIW I have done the following:
#!/usr/bin/env bash
BREW_FILE=$HOME/.Brewfile
BREW_TYPES=(
tap
brew
cask
mas
)
TMP_FILE=/tmp/.Brewfile_unsorted
# update homebrew list
brew bundle dump --force --file $TMP_FILE
# sort the final output
## clear current contents
> $BREW_FILE
for type in ${BREW_TYPES[@]}; do
## extract lines starting with "type" and sort them
grep --dereference-recursive "^${type}" $TMP_FILE | sort >> $BREW_FILE
done
## remove temporary file
rm $TMP_FILE
from homebrew-bundle.
then it's fine
It's fine if you're happy for dependencies to be installed not when the Brewfile
things they will be but before that and the error messages to not be clear about what package has failed to install.
from homebrew-bundle.
Related Issues (20)
- `brew bundle dump` opens VScode HOT 2
- Brew bundle failing with "undefined method oldnames" HOT 3
- How to consider processor architecture when installing? HOT 5
- Exit with 1 when failed `brew bundle check` HOT 4
- brew bundle dump - Error: undefined method `bottle_disabled?' for... HOT 3
- `vagrant plugin install ...` HOT 2
- --cleanup: "Refusing to untap [tap] because it contains the following installed formulae or casks" HOT 4
- Feature Request: Global Dart Packages HOT 7
- Skip transitive dependencies during `brew bundle dump` HOT 3
- error while installing from file HOT 2
- `brew bundle` is failing on missing key "osx-cross/arm/arm-none-eabi-binutils" HOT 20
- Brew bundle failing for some formulae `Error: wrong number of arguments (given 4, expected 3)` HOT 1
- Support exact versions for `vscode` plugins HOT 2
- Homebrew Bundle always starts services HOT 4
- With HOMEBREW_CASK_OPTS="--require-sha", brew bundle exits 0 even if installation is not successful HOT 6
- Feature Requests: Automatically Run `brew bundle dump` After `brew install` HOT 2
- Add SetApp support HOT 2
- VSCode extensions that have capital letters seem to not be registered, and get uninstalled HOT 2
- Feature request: Auto-start a cask after installation HOT 11
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 homebrew-bundle.