Giter VIP home page Giter VIP logo

monorepo's People

Contributors

juanique avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

monorepo's Issues

upload for new PR when parent is merged is not handled gracefully

master@d4f6fa9b (Remote) https://github.com/juanique/monorepo/commit/d4f6fa9b: a day ago - Fix an issue that was causing submodules
├── add_support_for_gaze_89350 ↟ https://github.com/juanique/monorepo/pull/96: Add support for gazelle-python
├── copy_file_rule_3185e ↟ https://github.com/juanique/monorepo/pull/105: copy_file_rule
├── dont_rebase/upload_c_2f8ff https://github.com/juanique/monorepo/pull/111: Dont rebase/upload commits that dont nee
│   └── trying_to_setup_remo_7e17c ↟ : Trying to setup remote
│       └── bump_bazel_version_f8c99 ↟ (Current) : Bump bazel version
├── liliypond_f16c6 ↟ https://github.com/juanique/monorepo/pull/106: liliypond
└── bump_mypy_version_6a97e ↟ https://github.com/juanique/monorepo/pull/112: Bump mypy version.

dont_rebase/upload_c_2f8ff was already merged.

Running gg upload --all fails with:

Traceback (most recent call last):
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg_cli.py", line 199, in <module>
    cli()
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__click/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__click/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__click/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))                                                                                                                                                        File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__click/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)                                                                                                                                                                 File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__click/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg_cli.py", line 31, in upload
    gg.upload(all_commits=all_)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 494, in upload
    self.traverse(self.root().id, f, skip=False)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 787, in traverse
    self.traverse(c, func)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 787, in traverse
    self.traverse(c, func)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 784, in traverse
    func(commit)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 492, in f
    self.upload(commit_id=c.id)
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 521, in upload
    commit.pull_request = self.hosted_repo.create_pull_request(
  File "/app/salsa/gg/gg_cli.runfiles/monorepo/salsa/gg/gg.py", line 279, in create_pull_request
    pr = repo.create_pull(
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__pygithub/github/Repository.py", line 1348, in create_pull
    return self.__create_pull_1(*args, **kwds)
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__pygithub/github/Repository.py", line 1379, in __create_pull_1
    return self.__create_pull(
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__pygithub/github/Repository.py", line 1392, in __create_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__pygithub/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/app/salsa/gg/gg_cli.runfiles/pip_deps/pypi__pygithub/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "field": "base", "code": "invalid"}], "documentation_url": "https://docs.github.com/rest/ref$rence/pulls#create-a-pull-request"}

git lock exists

Traceback (most recent call last):                                                                                   
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg_cli.py", line 199, in <module>
    cli()                                                                                                            
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__click/click/core.py", line 1130, in __call__                                                                                                                                  
    return self.main(*args, **kwargs)                                                                                
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__click/click/core.py", line 1055, in main                
    rv = self.invoke(ctx)                                                                                                                                                                                                                  
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__click/click/core.py", line 1657, in invoke              
    return _process_result(sub_ctx.command.invoke(sub_ctx))                                                                                                                                                                                
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__click/click/core.py", line 1404, in invoke                                                                                                                                    
    return ctx.invoke(self.callback, **ctx.params)                                                                   
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__click/click/core.py", line 760, in invoke               
    return __callback(*args, **kwargs)                                                                                                                                                                                                     
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg_cli.py", line 39, in sync
    gg.sync(all=all_)                                                                                                
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg.py", line 654, in sync                            
    self.sync(all=False)                                                                                             
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg.py", line 675, in sync                            
    new_remote_commit = self.pull_remote()                                                                           
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg.py", line 765, in pull_remote                                                                                                                                           
    pulled_commit = GitGud.get_remote_commit(self.repo, self.state.master_branch)                                                                                                                                                          
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/monorepo/salsa/gg/gg.py", line 363, in get_remote_commit               
    new_branch.checkout()                                                                                                                                                                                                                  
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__gitpython/git/refs/head.py", line 234, in checkout      
    self.repo.git.checkout(self, **kwargs)                                                                                                                                                                                                 
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__gitpython/git/cmd.py", line 639, in <lambda>                                                                                                                                  
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)                                                                                                                                                               
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__gitpython/git/cmd.py", line 1184, in _call_process                                                                                                                            
    return self.execute(call, **exec_kwargs)                                                                                                                                                                                               
  File "/tmp/Bazel.runfiles_gyecte11/runfiles/pip_deps/pypi__gitpython/git/cmd.py", line 984, in execute             
    raise GitCommandError(redacted_command, status, stderr_value, stdout_value)                                                                                                                                                            
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)                                                                                                                                                                          
  cmdline: git checkout master@a0d3b1c2                                                                                                                                                                                                    
  stderr: 'fatal: Unable to create '/home/juan-munoz/gg/monorepo/.git/index.lock': File exists.

gg - unstaged changes mess up sync

Steps to repro

$ touch something
$ gg commit -m"commit"
$ gg upload
<merge>
$ touch something-else
$ gg sync

git (not gg) freaks out because of the unstaged changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.