Asking to set "$HOME" environment variable

121 views
Skip to first unread message

Abhishek Jha

unread,
Dec 13, 2017, 9:39:25 AM12/13/17
to Copybara OSS
While running the first example (with given copy.bara.sky config file), cmd prompt is showing an error that "$HOME environment variable is not set".
What should be the parameter for authoring.pass_thru()?

Miguel Alcon

unread,
Dec 13, 2017, 9:44:55 AM12/13/17
to Abhishek Jha, Copybara OSS
Hi Abhishek,

Are you trying to run it on Windows? Do you have an stack trace?

We might need some tuning for windows systems. Internally we run it in some systems but we set some variables.

Cheers,
Mikel.


On Wed, Dec 13, 2017 at 9:39 AM, Abhishek Jha <abhi93s...@gmail.com> wrote:
While running the first example (with given copy.bara.sky config file), cmd prompt is showing an error that "$HOME environment variable is not set".
What should be the parameter for authoring.pass_thru()?

--
You received this message because you are subscribed to the Google Groups "Copybara OSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copybara-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to copybara-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copybara-discuss/2cb5e5bc-7a2c-42aa-83d2-89d0e9c7a193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abhishek Jha

unread,
Dec 26, 2017, 1:21:53 PM12/26/17
to Copybara OSS
Hi Mikel,

Thanks for replying. Yes, I am using windows. Here is the stack trace:

Task: Cleaning output directory.
java.lang.NullPointerException: $HOME environment var is not set
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
        at com.google.copybara.GeneralOptions.getDirFactory(GeneralOptions.java:208)
        at com.google.copybara.Main.lambda$cleanupOutputDir$0(Main.java:351)
        at com.google.copybara.GeneralOptions.ioRepoTask(GeneralOptions.java:189)
        at com.google.copybara.Main.cleanupOutputDir(Main.java:345)
        at com.google.copybara.Main.initEnvironment(Main.java:337)
        at com.google.copybara.Main.runInternal(Main.java:160)
        at com.google.copybara.Main.run(Main.java:107)
        at com.google.copybara.Main.main(Main.java:86)  

On Wednesday, December 13, 2017 at 8:14:55 PM UTC+5:30, Miguel Alcon wrote:
Hi Abhishek,

Are you trying to run it on Windows? Do you have an stack trace?

We might need some tuning for windows systems. Internally we run it in some systems but we set some variables.

Cheers,
Mikel.

On Wed, Dec 13, 2017 at 9:39 AM, Abhishek Jha <abhi93s...@gmail.com> wrote:
While running the first example (with given copy.bara.sky config file), cmd prompt is showing an error that "$HOME environment variable is not set".
What should be the parameter for authoring.pass_thru()?

--
You received this message because you are subscribed to the Google Groups "Copybara OSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copybara-discu...@googlegroups.com.
To post to this group, send email to copybara...@googlegroups.com.

Miguel Alcon

unread,
Dec 27, 2017, 5:19:46 PM12/27/17
to Abhishek Jha, Copybara OSS
I've created https://github.com/google/copybara/issues/38 . We'll take a look after the holidays.

Thanks for reporting it!

Meanwhile, I am not sure if can somehow define the HOME variable somehow in a wrapper script.

Cheers,
Mikel.

To unsubscribe from this group and stop receiving emails from it, send an email to copybara-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to copybara-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copybara-discuss/0ca53c48-90f5-4f25-a7a3-b7d4dc026950%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages