github / github/octocatalog-diff

Separate git repository per module

Offen
#148 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Operational
Vorherrschende Sprache
Ruby
Sterne
252
Forks
95
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

> Description of problem

We don't have one big repo, but each puppet module lives in its own git repository.
Can I still use octocatalog-diff ?
I was trying to follow [advanced-using-without-git](https://github.com/github/octocatalog-diff/blob/master/doc/advanced-using-without-git.md), but it still tries to find a repository in

`/opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/lib/octocatalog-diff/catalog-util/git.rb:67:in
'new': could not find repository from '/home/dmitry.korochkin/puppet' (Rugged::RepositoryError)
from /opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/lib/octocatalog-diff/catalog-util/git.rb:67:in 'branch_sha'
from /opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/lib/octocatalog-diff/catalog-util/cached_master_directory.rb:112:in 'git_repo_checkout_bootstrap'
from /opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/lib/octocatalog-diff/catalog-util/cached_master_directory.rb:49:in 'run'
from /opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/lib/octocatalog-diff/cli.rb:99:in 'cli'
from /opt/rh/ruby200/root/usr/local/share/gems/gems/octocatalog-diff-1.4.0/bin/octocatalog-diff:34:in ''
from /opt/rh/ruby200/root/usr/local/bin/octocatalog-diff:23:in 'load'
from /opt/rh/ruby200/root/usr/local/bin/octocatalog-diff:23:in ''`

Command line:
/opt/rh/ruby200/root/usr/local/bin/octocatalog-diff -d --bootstrap-then-exit --bootstrapped-from-dir=/etc/puppetlabs/puppet --bootstrapped-to-dir=/home/test/puppet

> Platform and version information

- Your OS: Linux RHEL6
- Your Ruby version: ruby 2.0.0p353
- Your version of Puppet: 3.8.7
- Your version of octocatalog-diff: 1.4.0

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit doc/advanced-using-without-git.md und dem fehlschlagenden Bootstrap-Pfad in lib/octocatalog-diff/catalog-util/git.rb und lib/octocatalog-diff/catalog-util/cached_master_directory.rb. Führen Sie den gemeldeten octocatalog-diff-Befehl erneut aus, verfolgen Sie, wo das Repository benötigt wird, und überprüfen Sie, dass das Bootstrapping funktioniert, wenn sich jedes Puppet-Modul in seinem eigenen Git-Repository befindet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, ruby
Bereich
devops, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.