This message was deleted.
# report-bugs
s
This message was deleted.
1
a
is “my_branch” someone else’s branch on the remote that was created via
gt branch create
or is it a local branch you created and have not pushed yet?
or something else?
d
my_branch
is the tip of a three branch stack created on my laptop and pushed to GH. The first two branches of the stack have been merged. hope that helps!
p
you're doing
downstack get
from another workspace i'm presuming?
a
So I would try a
gt repo sync -fr
first so that your local stack is up to date with main
2
d
i am on my desktop, yeah
p
yep, what @Alejandra Bienert said - could be since the merged branches aren't being detected here
a
maybe be careful with the
-f
and
-r
options if you’re not used to them
they’ll
-f
force delete closed branches and
-r
restack without prompting
1
d
i am not used to them, but i dont have many stacks right now
ok, I tried that, same error
🫥 1
a
the repo sync was fine?
d
Copy code
$ gt repo sync -fr

🌲 Pulling master from remote...
master is up to date.
🧹 Checking if any branches have been merged/closed and can be deleted...
master does not need to be restacked.
Copy code
$ gt downstack get my_branch
Pulling master from remote...
master is up to date.

ERROR: Received invalid dependency response
a
hmmm
I’m stumped
d
seems to be crashing on
Copy code
if (topReturnedBranch !== args.branchName ||
        bottomReturnedBranch !== args.trunkName) {
        throw new errors_1.ExitFailedError(`Received invalid dependency response ${response.downstackBranchNames}`);
    }
if i log right before it errors:
Copy code
console.log({ 'bottomReturnedBranch': bottomReturnedBranch, 'topReturnedBranch': topReturnedBranch, 'args.trunkName': args.trunkName });

{
  bottomReturnedBranch: undefined,
  topReturnedBranch: undefined,
  'args.trunkName': 'master'
}
Copy code
<https://api.graphite.dev/v1> {
  method: 'GET',
  url: '/graphite/downstack-dependencies',
  queryParams: {
    authToken: "OMITTED",
    org: "Lumen5",
    repo: "lumen5-170819-flux",
    trunkName: "master",
    branchName: "OMITTED"
  },
}
yields the following response
Copy code
{
  "downstackBranchNames": [],
  "_response": {
    "size": 0,
    "timeout": 0
  }
}
OMG! I figured it out! A while ago, we renamed the repo
lumen5-170819-flux
to
lumen5-flux
on Github. The original name still works as an alias for (mostly) everything, but apparently not for
/graphite/downstack-dependencies
😅
p
oh very interesting, that makes sense :)) happy you were able to get this solved!
d
but yeah, submitting stacks, etc - all seems to work in this case, except for this feature. So i guess still a bug report?
p
yeah thanks for the report! (silent cc @Jacob Gold for future CLI changes)
👍 1
a
THat was obscure! Nice catch
😂 1
b
Just read through this thread out of curiosity after I submitted my own bug report. Seems like there’s some cleanup/updates that need to happen in the case of a repo rename.