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

[generate] Print relative variable names for dep variables #450

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

angrycub
Copy link
Contributor

Description

Add missing variable qualifiers for non-root pack variables.

Reminders

  • Add CHANGELOG.md entry

I'm pretty sure that this error is not in a release, so can probably omit CL.

@angrycub angrycub self-assigned this Oct 24, 2023
@angrycub angrycub added type/bug stage/accepted theme/template/variable Relates to the variables passed to templates theme/cli Relates to the CLI in general labels Oct 24, 2023
@angrycub angrycub changed the title Print relative variable names for dep variables [generare] Print relative variable names for dep variables Oct 24, 2023
@angrycub angrycub changed the title [generare] Print relative variable names for dep variables [generate] Print relative variable names for dep variables Oct 24, 2023
@@ -78,7 +78,13 @@ func (v *Variable) Equal(ivp *Variable) bool {

func (v *Variable) AsOverrideString(pID pack.ID) string {
var out strings.Builder
out.WriteString(fmt.Sprintf(`# variable "%s"`, v.Name))

fqvn := strings.Join([]string{pID.String(), v.Name.String()}, ".")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love how everyone can immediately know what an fqvn is :)

Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Co-authored-by: Piotr Kazmierczak <[email protected]>
@angrycub angrycub merged commit b426f5b into main Oct 25, 2023
@angrycub angrycub deleted the bug-generate-varfile branch October 25, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted theme/cli Relates to the CLI in general theme/template/variable Relates to the variables passed to templates type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants