Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git error unknown option silent with git 2.14 #52

Closed
divansantana opened this issue Aug 17, 2017 · 5 comments
Closed

git error unknown option silent with git 2.14 #52

divansantana opened this issue Aug 17, 2017 · 5 comments

Comments

@divansantana
Copy link

With a Puppetfile of

#!/usr/bin/env ruby
#^syntax detection
forge "https://forgeapi.puppetlabs.com"
mod 'puppetlabs/stdlib', '~> 4'

Run librarian-puppet install --verbose and notice this error:

[Librarian] Git: /usr/bin/git
error: unknown option `silent'
usage: git version [<options>]

    --build-options       also print build options

This is with git = 2.14.1-1 on Arch.

Downgrading to 2.13.x fixes the issue.

Guessing this is a problem with librarian?

@jacobbednarz
Copy link

Can confirm I've also hit this issue after an upgrade to 2.14.1 on OSX using Homebrew.

@jacobbednarz
Copy link

I'm running librarian-puppet0.1.2 and the fix was to remove the silent options in lib/librarian/source/git/repository.rb. Unsure if more recent versions are impacted.

@hfm
Copy link

hfm commented Aug 19, 2017

This problem have been fixed by voxpupuli/librarian#4, but there's not available yet via Rubygems because new librarianp not released.
If you want to use now, you should write to Gemfile like the following:

gem "librarian-puppet"
gem "librarianp", git: "https://github.com/voxpupuli/librarian.git", branch: "librarianp"

# or
# gem "librarianp", git: "https://github.com/voxpupuli/librarian.git", ref: "4d78d88be2d7673a136e78760085fbf9664ff27d"

@jacobbednarz
Copy link

Thanks @hfm! I've been out of the loop with librarian-puppet so I'm not sure how this new gem fits into things. Is there a document outlining the new application architecture?

jacobbednarz added a commit to boxen/our-boxen that referenced this issue Aug 31, 2017
Following an upgrade to git 2.14.1 I was getting the following error:

```
[Librarian] Git: /usr/bin/git
error: unknown option `silent'
usage: git version [<options>]

    --build-options       also print build options
```

Digging into this I found voxpupuli/librarian-puppet#52 which shows a
fix by including the latest `librarianp` gem. This fixes the issue for
me however more digging into the architecture of `librarian-puppet` will
be required to understand this issue better.
jacobbednarz added a commit to boxen/our-boxen that referenced this issue Aug 31, 2017
Following an upgrade to git 2.14.1 I was getting the following error:

```
[Librarian] Git: /usr/bin/git
error: unknown option `silent'
usage: git version [<options>]

    --build-options       also print build options
```

Digging into this I found voxpupuli/librarian-puppet#52 which shows a
fix by including the latest `librarianp` gem. This fixes the issue for
me however more digging into the architecture of `librarian-puppet` will
be required to understand this issue better.
@ekohl
Copy link
Member

ekohl commented Sep 11, 2017

Given this should be fixed in librarianp I'm closing this. We're working on a new release so it shouldn't be long now.

@ekohl ekohl closed this as completed Sep 11, 2017
jacobbednarz added a commit to boxen/our-boxen that referenced this issue Sep 26, 2017
Following an upgrade to git 2.14.1 I was getting the following error:

```
[Librarian] Git: /usr/bin/git
error: unknown option `silent'
usage: git version [<options>]

    --build-options       also print build options
```

Digging into this I found voxpupuli/librarian-puppet#52 which shows a
fix by including the latest `librarianp` gem. This fixes the issue for
me however more digging into the architecture of `librarian-puppet` will
be required to understand this issue better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants