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

error message honores nested dots in attribute path elements #39060

Closed
wants to merge 1 commit into from

Conversation

qknight
Copy link
Member

@qknight qknight commented Apr 17, 2018

while using submodules we encountered that if the value is used but was not assigned
one would see this incorrect error message:

error: The option `nixcloud.TLS.certs.example.com.mode' is used but not defined.

this patch fixes it to:

error: The option `nixcloud.TLS.certs."example.com".mode' is used but not defined.

please also backport to 18.03

note

i've checked this patch locally, see the error message. if wanted i can prepare a minimal example how to reproduce.

while using submodules we encountered that if the value is used but was not assigned
one would see this incorrect error message:

  error: The option `nixcloud.TLS.certs.example.com.mode' is used but not defined.

this patch fixes it to:

  error: The option `nixcloud.TLS.certs."example.com".mode' is used but not defined.

please also backport to 18.03
@blargg
Copy link
Contributor

blargg commented Jul 14, 2019

This is in a bit of a weird state. It looks like commit 059a71a intended to fix this same problem. As of right now (19.03.173059.799a080ba1b (Koi)), the problem still exists, but this pull request is in conflict.

I would like some input from @grahamc, since he worked on the committed fix, and I'm not totally sure how that is intended to work.

I think the change to the current code would only need to be how we determine if we use the escaped string or the original string. Unless there is already a function to do this, we could probably use a function to check if the string contains ".", similar to this pull request.

@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/48

@worldofpeace
Copy link
Contributor

@blargg In that case I'd recommend opening a new issue with your concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants