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

fix: Inherit properties set via Source #551

Closed
wants to merge 1 commit into from

Conversation

abbra
Copy link

@abbra abbra commented Nov 24, 2024

When tapes sourced into each other, properties set in included tapes aren't affecting the configuration in the tape that sources them. Fix this by allowing to parse them all within the current commands context.

@caarlos0 caarlos0 mentioned this pull request Jan 6, 2025
@abbra abbra force-pushed the source-include-inheritance branch from df970d2 to d76d818 Compare February 2, 2025 05:39
@abbra abbra requested a review from a team as a code owner February 2, 2025 05:39
@abbra abbra requested review from csandeep and removed request for a team February 2, 2025 05:39
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
@abbra abbra force-pushed the source-include-inheritance branch from d76d818 to e46d333 Compare February 2, 2025 05:48
@bashbunni bashbunni added the bug Something isn't working label Mar 19, 2025
@bashbunni bashbunni changed the title Inherit properties set via Source fix: Inherit properties set via Source Mar 26, 2025
@caarlos0
Copy link
Member

Hi!

this PR doesn't seem to fix the issue.

Going with #567 instead.

Thanks for your work on this though!

@caarlos0 caarlos0 closed this Mar 26, 2025
@abbra
Copy link
Author

abbra commented Mar 26, 2025

Not sure what issue it does not fix for you. For me it works just fine -- I generate demos like https://vda.li/images/basic-demo.webm with this patch and actually source the configuration from a separate tape.

@caarlos0
Copy link
Member

I tried #566 and it doesn't seem to have any effect different than main.

can you check if #567 also works for your case?

or if you wanna share a reproducible, I can try as well

@abbra
Copy link
Author

abbra commented Mar 26, 2025

#566 is not the same as #551 -- you closed the latter claiming it does not do anything but you haven't tested it.

@abbra
Copy link
Author

abbra commented Mar 26, 2025

I cannot test #567 today, sorry, too much work at $dayjob

@caarlos0
Copy link
Member

caarlos0 commented Mar 26, 2025

#566 is not the same as #551 -- you closed the latter claiming it does not do anything but you haven't tested it.

sorry, in your description it's not clear to me what is actually not working, I thought it was the Set commands.

Could you clarify what's the difference?

@abbra
Copy link
Author

abbra commented Mar 26, 2025

If I set say, font and colors, in the included tape, they aren't reflected in anything that is done after the sourcing.

For example, if I had two tapes, inc/base.tape and my.tape, where the latter includes the former, then with the original version running the my.tape would not use the settings from the inc/base.tape.

$ cat inc/base.tape
Set Theme GruvboxDark
Set Shell "bash"
Set FontSize 24
Set Width 1200
Set Height 800

$ cat my.tape
Output "my.webm"

Source "inc/base.tape"

Type "# Authenticate as an admin first"
Enter
...

@caarlos0
Copy link
Member

ah, gotcha, the fix seems to be this though: #604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants