ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.7k stars 385 forks source link

making PR #192

Closed joeblew99 closed 7 years ago

joeblew99 commented 7 years ago

I am not using a fork of ponzu.

I git cloned the dev branch, but cant push the changes

# push to your origin:ponzu-dev branch and create a PR at ponzu-cms/ponzu
cd /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu && git push origin ponzu-dev
remote: Permission to ponzu-cms/ponzu.git denied to gedw99.
fatal: unable to access 'https://github.com/ponzu-cms/ponzu/': The requested URL returned error: 403

If i do a git fork first, and then try to build, it does not build because the file paths are wrong. Gotta be an easy way to get around this i dont know ??

git clone https://github.com/gedw99/ponzu /Users/apple/workspace/go/src/github.com/gedw99/ponzu # (or your fork)
Cloning into '/Users/apple/workspace/go/src/github.com/gedw99/ponzu'...
remote: Counting objects: 7142, done.
remote: Total 7142 (delta 0), reused 0 (delta 0), pack-reused 7142
Receiving objects: 100% (7142/7142), 3.38 MiB | 682.00 KiB/s, done.
Resolving deltas: 100% (3701/3701), done.
cd /Users/apple/workspace/go/src/github.com/gedw99/ponzu && git checkout ponzu-dev
Branch ponzu-dev set up to track remote branch ponzu-dev from origin.
Switched to a new branch 'ponzu-dev'
# install normally
#make dep
# or
cd /Users/apple/workspace/go/src/github.com/gedw99/ponzu && go install ./...
addons/github.com/bosssauce/reference/reference.go:15:2: cannot find package "github.com/ponzu-cms/ponzu/management/editor" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/management/editor (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/management/editor (from $GOPATH)
addons/github.com/bosssauce/reference/reference.go:16:2: cannot find package "github.com/ponzu-cms/ponzu/system/addon" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/addon (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/addon (from $GOPATH)
cmd/ponzu/main.go:18:2: cannot find package "github.com/ponzu-cms/ponzu/content" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/content (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/content (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/content (from $GOPATH)
cmd/ponzu/main.go:19:2: cannot find package "github.com/ponzu-cms/ponzu/system/admin" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/system/admin (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/admin (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/admin (from $GOPATH)
cmd/ponzu/main.go:20:2: cannot find package "github.com/ponzu-cms/ponzu/system/api" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/system/api (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/api (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/api (from $GOPATH)
cmd/ponzu/main.go:21:2: cannot find package "github.com/ponzu-cms/ponzu/system/api/analytics" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/system/api/analytics (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/api/analytics (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/api/analytics (from $GOPATH)
cmd/ponzu/main.go:22:2: cannot find package "github.com/ponzu-cms/ponzu/system/db" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/system/db (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/db (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/db (from $GOPATH)
cmd/ponzu/main.go:23:2: cannot find package "github.com/ponzu-cms/ponzu/system/tls" in any of:
        /Users/apple/workspace/go/src/github.com/gedw99/ponzu/cmd/ponzu/vendor/github.com/ponzu-cms/ponzu/system/tls (vendor tree)
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/tls (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/tls (from $GOPATH)
examples/createable/content/song.go:10:2: cannot find package "github.com/ponzu-cms/ponzu/system/admin/user" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/admin/user (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/admin/user (from $GOPATH)
examples/createable/content/song.go:12:2: cannot find package "github.com/ponzu-cms/ponzu/system/item" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/item (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/item (from $GOPATH)
system/admin/export.go:13:2: cannot find package "github.com/ponzu-cms/ponzu/management/format" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/management/format (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/management/format (from $GOPATH)
system/admin/handlers.go:17:2: cannot find package "github.com/ponzu-cms/ponzu/management/manager" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/management/manager (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/management/manager (from $GOPATH)
system/admin/server.go:10:2: cannot find package "github.com/ponzu-cms/ponzu/system" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system (from $GOPATH)
system/admin/handlers.go:19:2: cannot find package "github.com/ponzu-cms/ponzu/system/admin/config" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/admin/config (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/admin/config (from $GOPATH)
system/admin/handlers.go:20:2: cannot find package "github.com/ponzu-cms/ponzu/system/admin/upload" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/admin/upload (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/admin/upload (from $GOPATH)
system/admin/handlers.go:26:2: cannot find package "github.com/ponzu-cms/ponzu/system/search" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/search (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/search (from $GOPATH)
system/admin/upload/backup.go:12:2: cannot find package "github.com/ponzu-cms/ponzu/system/backup" in any of:
        /usr/local/opt/go/libexec/src/github.com/ponzu-cms/ponzu/system/backup (from $GOROOT)
        /Users/apple/workspace/go/src/github.com/ponzu-cms/ponzu/system/backup (from $GOPATH)
make: *** [git-clone] Error 1
olliephillips commented 7 years ago

Re the first case - where you cloned it - you're trying to push to the ponzu-cms/ponzu remote and you don't have permission.

You can get round this and assign a new origin (your github repo) to which you can push your changes like this:

git remote remove origin
git remote add origin https://github.com/gedw99/ponzu

# optionally add back the ponzu remote so you can sync changes to your remote

git remote add upstream https://github.com/ponzu-cms/ponzu

Then git push origin ponzu-dev should resolve to your repo.

nilslice commented 7 years ago

@joeblew99 - have you been able to get it working with @olliephillips' suggestion? Thanks for helping Ollie!

nilslice commented 7 years ago

Closing this for now due to inactivity, but please feel free to comment here for additional help.