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

-X option with space (like -X embulk_home path/to/home) behavior. #1502

Open
hiroyuki-sato opened this issue Apr 22, 2022 · 0 comments
Open

Comments

@hiroyuki-sato
Copy link
Contributor

Embulk -X option use the equal character for key-value pair. It also works space instead of the =.
But It's not expected behavior. dmikurube comment in twitter

  • Write the following environmental information.
    • OS version: macOS 12.3.1
    • Java version: 1.8.0_331
    • Embulk version: 0.10.35

= and -X options. (Expected behavior)

% java -jar /path/to/embulk/embulk-0.10.35.jar \
  -X embulk_home=/tmp/embulk_with_equal \
  -X jruby=file:///path/to/jruby/jruby-complete-9.3.4.0.jar gem install msgpack
2022-04-22 09:04:27.578 +0900 [INFO] (main): embulk_home is set from command-line: /tmp/embulk_with_equal
2022-04-22 09:04:27.582 +0900 [INFO] (main): m2_repo is set as a sub directory of embulk_home: /tmp/embulk_with_equal/lib/m2/repository
2022-04-22 09:04:27.583 +0900 [INFO] (main): gem_home is set as a sub directory of embulk_home: /tmp/embulk_with_equal/lib/gems
2022-04-22 09:04:27.583 +0900 [INFO] (main): gem_path is set empty.
2022-04-22 09:04:31.720 +0900 [INFO] (main): Environment variable "GEM_HOME" is not set. Setting "GEM_HOME" to "/tmp/embulk_with_equal/lib/gems" from Embulk system property "gem_home" for the "gem" command.
Fetching msgpack-1.5.1-java.gem
Successfully installed msgpack-1.5.1-java
Parsing documentation for msgpack-1.5.1-java
Installing ri documentation for msgpack-1.5.1-java
Done installing documentation for msgpack after 3 seconds
1 gem installed

(space) and -X option (Unexpected behavior)

% java -jar /path/to/embulk/embulk-0.10.35.jar \
  -X embulk_home /tmp/embulk_with_space \
  -X jruby file:///path/to/jruby/jruby-complete-9.3.4.0.jar gem install msgpack
2022-04-22 09:05:17.730 +0900 [INFO] (main): embulk_home is set from command-line: /tmp/embulk_with_space
2022-04-22 09:05:17.734 +0900 [INFO] (main): m2_repo is set as a sub directory of embulk_home: /tmp/embulk_with_space/lib/m2/repository
2022-04-22 09:05:17.734 +0900 [INFO] (main): gem_home is set as a sub directory of embulk_home: /tmp/embulk_with_space/lib/gems
2022-04-22 09:05:17.734 +0900 [INFO] (main): gem_path is set empty.
2022-04-22 09:05:21.352 +0900 [INFO] (main): Environment variable "GEM_HOME" is not set. Setting "GEM_HOME" to "/tmp/embulk_with_space/lib/gems" from Embulk system property "gem_home" for the "gem" command.
Fetching msgpack-1.5.1-java.gem
Successfully installed msgpack-1.5.1-java
Parsing documentation for msgpack-1.5.1-java
Installing ri documentation for msgpack-1.5.1-java
Done installing documentation for msgpack after 2 seconds
1 gem installed

confirm installed gem

% cd /tmp/embulk_with_space/
% fd msgpack
lib/gems/cache/msgpack-1.5.1-java.gem
lib/gems/doc/msgpack-1.5.1-java
lib/gems/doc/msgpack-1.5.1-java/ri/Array/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Bignum/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/FalseClass/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Fixnum/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Float/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Hash/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Integer/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/Bigint/from_msgpack_ext-c.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/Bigint/to_msgpack_ext-c.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/CoreExt/to_msgpack-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/ExtensionValue/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/Timestamp/from_msgpack_ext-c.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/Timestamp/to_msgpack_ext-c.ri
lib/gems/doc/msgpack-1.5.1-java/ri/MessagePack/Timestamp/to_msgpack_ext-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/NilClass/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/String/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Symbol/from_msgpack_ext-c.ri
lib/gems/doc/msgpack-1.5.1-java/ri/Symbol/to_msgpack_with_packer-i.ri
lib/gems/doc/msgpack-1.5.1-java/ri/TrueClass/to_msgpack_with_packer-i.ri
lib/gems/gems/msgpack-1.5.1-java
lib/gems/gems/msgpack-1.5.1-java/lib/msgpack
lib/gems/gems/msgpack-1.5.1-java/lib/msgpack/msgpack.jar
lib/gems/gems/msgpack-1.5.1-java/lib/msgpack.rb
lib/gems/specifications/msgpack-1.5.1-java.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant