GithubHelp home page GithubHelp logo

Comments (4)

ethanis avatar ethanis commented on September 4, 2024 1

Do you think the second issue is related to this?

ReadStream(process.StandardOutput, output, cts.Token);
ReadStream(process.StandardError, output, cts.Token);

These run in parallel, correct?

@luke-engle yep, that means that we're reading the StdErr and StdOut streams in parallel. Maybe we need to put a lock around the bits where we write the output to the console? (or rather, use a thread safe lock like a semaphore 😄)

from gh-valet.

luke-engle avatar luke-engle commented on September 4, 2024

Some updates here, @ethanis

I believe these are two separate problems.

The first, I can't seem to reproduce locally - only in a codespace. Interestingly, when you resize the browser window (changing the terminal size), the leftover progress bar disappears. In a codespace this happens very consistently, but I've tried many times and can't seem to reproduce the behavior in my local vscode terminal.

The second one I can produce locally if I remove the credentials store in ~/.docker/config.json, and run gh valet update. The output being mangled comes from the docker login command. When I run the docker login command directly: echo "$GH_PAT" | docker login ghcr.io --username luke-engle --password-stdin, there is consistently no output mangling.

This seems to be an issue that's coming from the gh cli and/or gh-valet. I'm also wondering if it's a similar problem to the issue where the docker update command lists every image download in a newline instead of replacing previous downloads like we see when the docker command is run by itself in a terminal

from gh-valet.

luke-engle avatar luke-engle commented on September 4, 2024

Do you think the second issue is related to this?

ReadStream(process.StandardOutput, output, cts.Token);
ReadStream(process.StandardError, output, cts.Token);

These run in parallel, correct?

from gh-valet.

luke-engle avatar luke-engle commented on September 4, 2024

That's exactly what I was working on 😁

from gh-valet.

Related Issues (20)

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.