Skip to content

fix: handle missing .env#112

Merged
notnmeyer merged 2 commits into
mainfrom
fix/110/show-warning-when-dotenv-is-missing
Jun 3, 2025
Merged

fix: handle missing .env#112
notnmeyer merged 2 commits into
mainfrom
fix/110/show-warning-when-dotenv-is-missing

Conversation

@notnmeyer

@notnmeyer notnmeyer commented Jun 3, 2025

Copy link
Copy Markdown
Owner

fixes #110

# tasks.toml
[tasks.missing_dotenv]
dotenv = ".doesnt-exist"
cmds = ["echo ok"]

➜ bin/tsk missing_dotenv
Warning: Could not load dotenv file examples/.doesnt-exist: open examples/.doesnt-exist: no such file or directory
ok

@notnmeyer notnmeyer changed the title fix(#110): handle missing .env fix: handle missing .env Jun 3, 2025
@notnmeyer notnmeyer merged commit 9c6323c into main Jun 3, 2025
1 check passed
@notnmeyer notnmeyer deleted the fix/110/show-warning-when-dotenv-is-missing branch June 3, 2025 04:52
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.

tsk silently fails if a .env file doesn't exist

1 participant