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

subgraph push seems to require operating in a git repo. #271

Closed
ndintenfass opened this issue Feb 15, 2021 · 2 comments · Fixed by #282
Closed

subgraph push seems to require operating in a git repo. #271

ndintenfass opened this issue Feb 15, 2021 · 2 comments · Fixed by #282
Assignees
Labels
Milestone

Comments

@ndintenfass
Copy link
Contributor

( reported by @michael-watson )

Description

When attempting to push a subgraph from a directory that is not a git repo (does not have .git) it fails with message

Steps to reproduce

Attempt to push a subgraph schema from a directory that is not part of a git repo.

Expected result

Commands in rover for pushing schema should not presume or require running in a git repo. Sensible default values for the git fields should be sent instead.

Actual result

Pushing fails if not in a git repo.

Environment

[TODO need to get from Michael]

@ndintenfass ndintenfass changed the title subgraph push seems to require operating in a git project. subgraph push seems to require operating in a git repo. Feb 15, 2021
@ndintenfass
Copy link
Contributor Author

ndintenfass commented Feb 15, 2021

Original error report:
image

@michael-watson
Copy link
Contributor

michael-watson commented Feb 15, 2021

Full output and CLI command:

michaelwatson: acephei-customers$ rover info
  INFO Rover Info:
Version: 0.0.1
Install Location: /Users/michaelwatson/.nvm/versions/node/v14.10.1/lib/node_modules/@apollo/rover/node_modules/binary-install/bin/rover
OS: Mac OS 10.15.7 [64-bit]
Shell: /bin/zsh
michaelwatson: acephei-customers$ rover subgraph push acephei-e-commerrce-pybpmi@staging --name=customers --schema=./src/schema.graphql --routing-url=https://9pxh90h4k3.execute-api.us-east-1.amazonaws.com/Prod/graphql --profile=acephei-checkouts
error: could not find repository from '/Users/michaelwatson/Documents/GitHub/Apollo/acephei-e-commerce/acephei-customers'; class=Repository (6); code=NotFound (-3)

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

Successfully merging a pull request may close this issue.

4 participants