mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unsupported and unnecessary --no-emoji option (#4662)
* Remove unsupported and unnecessary --no-emoji option `--no-emoji` causes errors in Yarn 2+ and should be unnecessary in Yarn 1.x; Yarn 1.x should only use emoji on supported interactive terminals. * Add changelog fragment * Update changelogs/fragments/4662-yarn-emoji.yml Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/4662-yarn-emoji.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
aeeb09f0da
commit
00abaf6f80
2 changed files with 3 additions and 4 deletions
2
changelogs/fragments/4662-yarn-emoji.yml
Normal file
2
changelogs/fragments/4662-yarn-emoji.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
breaking_changes:
|
||||||
|
- yarn - remove unsupported and unnecessary ``--no-emoji`` flag (https://github.com/ansible-collections/community.general/pull/4662).
|
|
@ -147,7 +147,7 @@ invocation:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
description: Output generated from Yarn with emojis removed.
|
description: Output generated from Yarn.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "yarn add v0.16.1[1/4] Resolving packages...[2/4] Fetching packages...[3/4] Linking dependencies...[4/4]
|
sample: "yarn add v0.16.1[1/4] Resolving packages...[2/4] Fetching packages...[3/4] Linking dependencies...[4/4]
|
||||||
|
@ -205,9 +205,6 @@ class Yarn(object):
|
||||||
cmd.append('--registry')
|
cmd.append('--registry')
|
||||||
cmd.append(self.registry)
|
cmd.append(self.registry)
|
||||||
|
|
||||||
# always run Yarn without emojis when called via Ansible
|
|
||||||
cmd.append('--no-emoji')
|
|
||||||
|
|
||||||
# If path is specified, cd into that path and run the command.
|
# If path is specified, cd into that path and run the command.
|
||||||
cwd = None
|
cwd = None
|
||||||
if self.path and not self.globally:
|
if self.path and not self.globally:
|
||||||
|
|
Loading…
Reference in a new issue