Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not use proxy for yarn command while build #1876

Merged
merged 1 commit into from
Feb 3, 2020
Merged

not use proxy for yarn command while build #1876

merged 1 commit into from
Feb 3, 2020

Conversation

phuongnq
Copy link
Member

@phuongnq phuongnq commented Feb 3, 2020

Ticket reference or full description of what's in the PR

Issue while building under proxy

[INFO] --- frontend-maven-plugin:1.7.6:yarn (install legacy hybrid deps) @ crafter-studio ---
[INFO] Found proxies: [httpproxy{protocol='http', host='proxy-host', port=proxy-port}, httpsproxy{protocol='https', host='proxy-host', port=proxy-port}]
[INFO] Running 'yarn ' in /Users/phuong.nguyen/craftercms-dev/craftercms/src/studio-ui/ui/legacy
[INFO] yarn install v1.21.1
[INFO] [1/4] Resolving packages...
[INFO] success Already up-to-date.
[INFO] Done in 0.26s.
[INFO]
[INFO] --- frontend-maven-plugin:1.7.6:yarn (build legacy hybrid files) @ crafter-studio ---
[INFO] Found proxies: [httpproxy{protocol='http', host='prox-host', port=proxy-port}, httpsproxy{protocol='https', host='proxy-host', port=proxy-port}]
[INFO] Running 'yarn build --https-proxy=http://prox-host:proxy-port --proxy=http://prox-host:proxy-port' in /Users/phuong.nguyen/craftercms-dev/craftercms/src/studio-ui/ui/legacy
[INFO] yarn run v1.21.1
[INFO] $ babel ./src -d ../../static-assets --https-proxy=http://prox-host:proxy-port --proxy=http://prox-host:proxy-port
[ERROR] error: unknown option '--https-proxy'
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:12 min
[INFO] Finished at: 2020-01-23T11:57:39+09:00

Related issue:
eirslett/frontend-maven-plugin#796

Work around:
Not use proxy for yarn command:
https://github.com/eirslett/frontend-maven-plugin#proxy-settings

@phuongnq phuongnq requested a review from sumerjabri as a code owner February 3, 2020 06:19
@sumerjabri sumerjabri merged commit ba5973b into craftercms:develop Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants