-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
--experimental_repository_cache should allow a relative path #3516
Comments
We have a feature request to allow user specific directory: |
+1
…On Tue, Aug 8, 2017 at 10:33 AM David Ostrovsky ***@***.***> wrote:
We have a feature request to allow user specific directory:
~/.gerritcodereview/download-cache.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3516 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF3ByOVsAbfkJKJko1Jq7fhnqc5wOks5sWA9LgaJpZM4Ovi2a>
.
|
+1 |
It only it would resolve env-vars like $HOME or $PWD as a workaround. |
crash is P1, feature request seems to be not that hard to implement either |
@ittaiz yeah and it was undone in later patch sets of that CL: [1]. |
Why was it undone?
…On Wed, 10 Jan 2018 at 20:15 David Ostrovsky ***@***.***> wrote:
@ittaiz <https://github.com/ittaiz> , yeah and it was undone in later
patch sets of that CL: [1].
- [1]
***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3516 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF2LJ4X7XmVopbQhd4Zu4aa-XPfcRks5tJP5EgaJpZM4Ovi2a>
.
|
Because reviewers pointed out, that support for HOME-directory aware paths should be generally integrated in Bazel infrastructure and not hard coded in this specific parameter. |
I see.
Unlikely you'll pick that one up, right?
…On Thu, 11 Jan 2018 at 9:06 David Ostrovsky ***@***.***> wrote:
Because reviewers pointed out, that support for HOME-directory should be
generally integrated in Bazel infrastructure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3516 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF-9pcZGn-AmQ2HCQMr3G8XspOn1-ks5tJbLdgaJpZM4Ovi2a>
.
|
Unfortunately, I cannot work on that atm. |
...and interpret them relative to the workspace directory. Improves on #3516. In fact, fixes the original request of supporting relative paths. Change-Id: Ibbb6fd43179d589ad477427e47e26c773c7a04de PiperOrigin-RevId: 185121629
The actual crash is fixed in 157caed
and relative paths are interpreted relative to the WORKSPACE directory.
So the intended use case 'bazel build --experimental_repository_cache=my_cache'
works.
Alternatively, 8837461 and
220d650 add an option --experimental_distdir
allowing to specify a list of read-only directories containing flatly
the archives instead of a cache directory in bazel's internal repository
cache format. Again, relative paths work (interpreted relative to the
WORKSPACE, e.g., 'bazel build --experimental_distdir=distfiles'), as
do absolute path ('bazel build --experimental_distdir=/usr/ports/distfiles').
So, the only remaining part of this issue is what is already tracked
in #2054. Therefore, unless someone objects, I will close this issue leaving
only feature request #2054 open. (For the latter, I'm not sure if it
is really necessary. Options passed on the command line are already
expanded by the shell, and options referring to the user's home directory
are best set in the user's .bazelrc file (which is individual per user);
documentation can still suggest commands like 'echo
$HOME/.gerritcodereview/download-cache >> $HOME/.bazelrc' which again
will be expanded correctly by the shell).
…--
Klaus Aehlig
Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Paul Terence Manicle, Halimah DeLaine Prado
|
How does this play with a bazelrc file which is checked in to the project?
Unfortunately bazelrc files aren’t hierarchical so one has to use one or
the other and we’re using the checked in version to not have tribal
knowledge of what goes in
…On Mon, 12 Feb 2018 at 17:27 Klaus Aehlig ***@***.***> wrote:
The actual crash is fixed in 157caed
and relative paths are interpreted relative to the WORKSPACE directory.
So the intended use case 'bazel build
--experimental_repository_cache=my_cache'
works.
Alternatively, 8837461 and
220d650 add an option
--experimental_distdir
allowing to specify a list of read-only directories containing flatly
the archives instead of a cache directory in bazel's internal repository
cache format. Again, relative paths work (interpreted relative to the
WORKSPACE, e.g., 'bazel build --experimental_distdir=distfiles'), as
do absolute path ('bazel build
--experimental_distdir=/usr/ports/distfiles').
So, the only remaining part of this issue is what is already tracked
in #2054. Therefore, unless someone objects, I will close this issue
leaving
only feature request #2054 open. (For the latter, I'm not sure if it
is really necessary. Options passed on the command line are already
expanded by the shell, and options referring to the user's home directory
are best set in the user's .bazelrc file (which is individual per user);
documentation can still suggest commands like 'echo
$HOME/.gerritcodereview/download-cache >> $HOME/.bazelrc' which again
will be expanded correctly by the shell).
--
Klaus Aehlig
Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen
<https://maps.google.com/?q=Erika-Mann-Str.+33,+80636+Muenchen&entry=gmail&source=g>
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Paul Terence Manicle, Halimah DeLaine Prado
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3516 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF6ptvj-7jq6ykxeHOJuknmNxXHcnks5tUFhYgaJpZM4Ovi2a>
.
|
Indeed, this is yet another independent issue. Filed #4629 to keep track of it. |
The actual issue is solved, and all other feature requests that came up in the discussion are tracked in separate issues. Closing. |
Which change fixes it? According to the comments in #3042 is is not fixed. |
Or at least not print a stack trace:
The text was updated successfully, but these errors were encountered: