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

Homebrew and Caskroom package names collide #142

@indirect

Description

@indirect

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions