Skip to content

feat!: move DECAF_ROOT_WORKING_DIRECTORY env var to input script data - #204

Draft
levibostian wants to merge 1 commit into
mainfrom
put-root-dir-env-var-in-input
Draft

feat!: move DECAF_ROOT_WORKING_DIRECTORY env var to input script data#204
levibostian wants to merge 1 commit into
mainfrom
put-root-dir-env-var-in-input

Conversation

@levibostian

@levibostian levibostian commented Jul 9, 2026

Copy link
Copy Markdown
Owner

As I was looking through the Decaf SDK code, I was trying to find all of the code that the SDK has to keep in sync with Decaf. If DCF changes something, then we would break the SDK. The goal is that the SDK breaks as little as possible and is always backwards compatible with DCF.

I then looked at all environment variables that they have to keep in sync, and I found this one. I think that actually it was the wrong move to make this an environment variable and instead it should be a part of the input data because the entire design pattern of Decaf is that we pass everything to you that you need with JSON, and then you give us back everything we need with JSON.

So I feel like this also needs to follow that pattern.

Related GitHub Issues

Problem

Solution

Testing

  • Added automated tests.
  • Manually tested. If you check this box, provide instructions for others to test, too.

The automated test suite has been updated with essentially a refactor where we're swapping an environment variable for input data. Along with that, we are using this pull request to ensure that everything works as expected. Some of the decaf scripts will need to be changed because of this, so this pull request will be a good test for that.

Notes for reviewers

Currently in draft until I edit my decaf scripts to confirm this is an OK change to make.

As I was looking through the Decaf SDK code, I was trying to find all of the code that the SDK has to keep in sync with Decaf. If DCF changes something, then we would break the SDK. The goal is that the SDK breaks as little as possible and is always backwards compatible with DCF.

I then looked at all environment variables that they have to keep in sync, and I found this one. I think that actually it was the wrong move to make this an environment variable and instead it should be a part of the input data because the entire design pattern of Decaf is that we pass everything to you that you need with JSON, and then you give us back everything we need with JSON.

So I feel like this also needs to follow that pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant