-
Notifications
You must be signed in to change notification settings - Fork 264
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
Confusing parameter #284
Comments
I agree we need (some) documentation - that hasn't been a focus. Unfortunately, we can't change external APIs as there are multiple consumers, some of which we (Microsoft) don't control. |
@jhowardmsft - Renaming a string param isn't a breaking change. I think if its just a rename we could accomplish fixing the confusing part without breaking the API. Thoughts? |
Renaming is fine 😇 But it didn't sound like a rename unless I'm missing something? |
No you are right. I was just saying we could call it |
…_append Fix additional append in host device list
In layer.go, the
CreateSandboxLayer
andCreateScratchLayer
functions both have a parameter namedparentId
. It is a natural way to think that this is the parent layer of the layer we want to create, but from line 34 of create.go, we can deduce that theparentId
is actually the base layer ID, because the order of paths to read-only parent layers given towclayer create
as argument should ends with base layer. Interestingly, theparentId
parameter is ignored inside theCreateSandboxLayer
andCreateScratchLayer
functions, so it does not make any difference in the execution.Here, I suggest probably we should delete that parameter. In addition, for argument specifying paths to parent layers like in
create
,import
,export
, andmount
, we probably need a better documentation on the order and how the list should be given. The order should be ending with base layer instead of starting with it, and the list should have-l
before every element like-l layer_3 -l layer_2 -l layer_1
.The text was updated successfully, but these errors were encountered: