m

    mammoth-garden-53682

    2 months ago
    has anyone encountered this issue with
    auto.GitRepo
    :
    failed to create stack: failed to create workspace, unable to enlist in git repo: unable to checkout branch: reference not found
    using a PAT. Config is straight from example and looks like this:
    auth := &auto.GitAuth{
    		PersonalAccessToken: cfg.AuthToken,
    	}
    
    	repo := auto.GitRepo{
    		Auth:   auth,
    		URL:    cfg.Repo,
    		Branch: cfg.Branch,
    
    	}
    	ctx := context.Background()
    	s, err := auto.NewStackRemoteSource(ctx, "dev", repo)
    If I don’t specify branch then it works…
    e

    eager-football-6317

    2 months ago
    At present, if you supply a branch, it must be in the form
    refs/heads/<branch>
    . It’s a bit of a quirk 🤨 , see https://github.com/pulumi/pulumi-kubernetes-operator/issues/103
    (NB the last comment there)