Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Homebrew and Caskroom package names collide #142

Open
indirect opened this issue Jan 28, 2017 · 1 comment
Open

Homebrew and Caskroom package names collide #142

indirect opened this issue Jan 28, 2017 · 1 comment

Comments

@indirect
Copy link
Contributor

I'm using Boxen to manage a list of Homebrew (and Caskroom). Since they have separate namespaces, both of them offer a package named handbrake. In Homebrew, that package is a command-line tool, and in Caskroom, that package is a GUI .app package that goes in /Applications.

Unfortunately, Boxen creates both types of packages in a single namespace, and Puppet doesn't allow two packages with the same name.

Here's the output from running boxen:

$ script/boxen
--> Preparing to auto-update...
--> Complete! Nothing new from upstream.
Error: Duplicate declaration: Package[handbrake] is already declared; cannot redeclare at /opt/boxen/repo/shared/boxen/manifests/personal.pp:91 on node finn.local
Error: Duplicate declaration: Package[handbrake] is already declared; cannot redeclare at /opt/boxen/repo/shared/boxen/manifests/personal.pp:91 on node finn.local

Here's an example Hiera file to recreate the problem:

# /opt/boxen/repo/hiera/users/indirect.yaml
---
boxen::personal::homebrew_packages:
  - handbrake

boxen::personal::osx_apps:
  - handbrake
@indirect
Copy link
Contributor Author

One note of clarification: it is completely possible to manually run the commands brew install handbrake and brew cask install handbrake successfully... but I'm using Boxen because I want automation. 😂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant