{"id":24552705,"url":"https://github.com/itsfarseen/dotenv-test","last_synced_at":"2025-03-16T14:14:25.807Z","repository":{"id":133435899,"uuid":"501169509","full_name":"itsfarseen/dotenv-test","owner":"itsfarseen","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-08T08:50:58.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T21:11:22.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsfarseen.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-08T08:46:51.000Z","updated_at":"2023-03-04T09:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2ab3646-19ea-4533-be1b-2a0b62b008bb","html_url":"https://github.com/itsfarseen/dotenv-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fdotenv-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fdotenv-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fdotenv-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fdotenv-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsfarseen","download_url":"https://codeload.github.com/itsfarseen/dotenv-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878491,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T01:32:46.426Z","updated_at":"2025-03-16T14:14:25.801Z","avatar_url":"https://github.com/itsfarseen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test to see if we can override `dotenv()`\n\nContents of `.env`:\n```\nexport FOO=bar\n```\n\nContents of `.env.test`:\n```\nexport FOO=test\n```\n\n```bash\n$ cargo run\n    Finished dev [unoptimized + debuginfo] target(s) in 0.01s\n     Running `target/debug/dotenv-test`\nFOO=bar\n\n\n$ source .env.test\n$ cargo run\n    Finished dev [unoptimized + debuginfo] target(s) in 0.01s\n     Running `target/debug/dotenv-test`\nFOO=test\n```\n\n# What happens here\n\n`dotenv()` won't overwrite existing env vars.  \nThis allows us to override env vars by either doing `FOO=xyz cargo run` or `export FOO=xyz; cargo run`.  \nIn both cases, `dotenv()` won't overwrite `FOO=bar` from the `.env` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsfarseen%2Fdotenv-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsfarseen%2Fdotenv-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsfarseen%2Fdotenv-test/lists"}