composer / composer/satis

No Ansi flag not respected

Open
#559 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
3.3k
Forks
530
Avg merge
6h 53m
Merged PRs (30d)
13

Description

# What I did

I'm running satis in Jenkins with the command `/satis/bin/satis build --no-interaction --no-ansi composer.json /build/out`

# What I expected to happen

I expected there to be no ansi control characters in the the output.

# What actually happened

I get the following output with ansi control characters:

```
[0m [91m
Reading composer.json of 99designs/phumbor (0.1.0)
[0m [91m
[0m [91mReading composer.json of 99designs/phumbor (0.1.1) [0m [91m
Reading composer.json of 99designs/phumbor (0.1.2) [0m [91m
Reading composer.json of 99designs/phumbor (0.1.3) [0m [91m
Reading composer.json of 99designs/phumbor (1.0.0) [0m [91m
Reading composer.json of 99designs/phumbor (1.0.1) [0m [91m
Reading composer.json of 99designs/phumbor (1.0.2) [0m [91m
Reading composer.json of 99designs/phumbor (1.1.0) [0m [91m
Reading composer.json of 99designs/phumbor (1.2.0) [0m [91m
Reading composer.json of 99designs/phumbor (1.2.1) [0m [91m
Reading composer.json of 99designs/phumbor (1.2.2) [0m [91m
[0m [91mReading composer.json of 99designs/phumbor (cloneable-url-builder) [0m [91m
Reading composer.json of 99designs/phumbor (fix-urlencoding)
[0m [91m
Reading composer.json of 99designs/phumbor (master)
[0m [91mReading composer.json of squizlabs/php_codesniffer (1.3.1)
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `satis build --no-interaction --no-ansi composer.json /build/out` command in Jenkins or a comparable non-interactive environment, then trace where the ANSI control characters are emitted. Done means the same command produces output without ANSI control characters while retaining the existing build behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.