erlang / rebar3

Erlang build tool that makes it easy to compile and test Erlang applications and releases.
http://www.rebar3.org
Apache License 2.0
1.68k stars 512 forks source link

vim.args.src don't create vim.args file #2329

Open ghost opened 3 years ago

ghost commented 3 years ago

step open powershell whit admin and cd D:\tmp\test rebar3 new release test modify rebar.config(just add "src") {sys_config_src, "./config/sys.config.src"}, {vm_args_src, "./config/vm.args.src"}, modify sys.config.src [ {test, [ {test, ${TEST}} ]} ]. modify vm.args.src -sname test

-setcookie ${TEST}

+K true +A30 set TEST=test rebar3 shell 3> application:get_env(test,test). {ok,test} rebar3 as prod release PS D:\tmp\test> .\_build\prod\rel\test\bin\test FINDSTR: 无法打开 D:\tmp\test_build\prod\rel\test\releases\0.1.0\vm.args FINDSTR: 无法打开 D:\tmp\test_build\prod\rel\test\releases\0.1.0\vm.args FINDSTR: 无法打开 D:\tmp\test_build\prod\rel\test\releases\0.1.0\vm.args Usage: test (install|uninstall|start|stop|restart|upgrade|downgrade|console|ping|list|attach|remote_console|undefined)

there is no vm.args or sys.config in "D:\tmp\test_build\prod\rel\test\releases\0.1.0" and in test.cmd I found #################### :: Find the vm.args file :find_vm_args @if not exist "%vm_args%" ( @if exist "%vm_args%.orig" ( ren "%vm_args%.orig" vm.args ) ) @goto :eof #################### so, if it don't execute any script to create vm.args file?

Environment

Rebar3 report version 3.13.2 generated at 2020-08-22T05:37:03+00:00

Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)

Task: Entered as:


Operating System: win32 ERTS: Erlang/OTP 23 [erts-11.0] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] Root Directory: c:/Program Files/erl-23.0 Library directory: c:/Program Files/erl-23.0/lib

Loaded Applications: bbmustache: 1.8.0 certifi: 2.5.1 cf: 0.2.2 common_test: 1.19 compiler: 7.6 crypto: 4.7 cth_readable: 1.4.6 dialyzer: 4.2 edoc: 0.12 erlware_commons: 1.3.1 eunit: 2.5 eunit_formatters: 0.5.0 getopt: 1.0.1 hipe: 4.0 inets: 7.2 kernel: 7.0 providers: 1.8.1 public_key: 1.8 relx: 3.33.0 sasl: 3.5 snmp: 5.6 ssl_verify_fun: 1.1.5 stdlib: 3.13 syntax_tools: 2.3 tools: 3.4


Escript path: c:/Program Files/rebar3/rebar3 Providers: app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit get-deps help install install_deps list lock new path pkgs release relup report repos shell state tar tree unlock update upgrade upgrade upgrade version xref $ rebar3 report "my failing command"

ghost commented 3 years ago

it's work with wsl(sudo su), i think is a privileges problem

ferd commented 3 years ago

most common privilege you might hit yourself to have to do with creating symlinks.

ghost commented 3 years ago

most common privilege you might hit yourself to have to do with creating symlinks. @ferd I try again in another computer with all privilege but, it still only work on wsl 图片 i have no idea about it