Hitesh Pattanayak 0b997e6176
set repository config location w.r.t corso config location (#4638)
Create repository config(s) in the same parent directory as corso config instead of creating repository config in `/tmp` directory.
Scenarios:

1. CORSO_CONFIG_DIR set to /test/directory, --config-file not provided
    - `.corso.toml` should be created at /test/directory
    - `repository.config` should be created at /test/directory
2. CORSO_CONFIG_DIR not set, --config-file provided /test/directory-2
    - `.corso.toml` should be created at /test/directory-2
    - `repository.config` should be created at /test/directory-2
3. CORSO_CONFIG_DIR not set, --config-file not provided
    - `.corso.toml` should be created at /home/user
    - `repository.config` should be created at /home/user

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [x] 🕐 Yes, but in a later PR
- [ ]  No

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

* #4443 

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [x]  Unit test
- [x] 💚 E2E
2023-11-11 06:23:26 +00:00
..
2023-11-11 02:28:43 +00:00
2022-09-07 15:50:54 -06:00
2023-04-12 23:30:38 +00:00
2022-07-11 08:47:15 -07:00

SRC Directory

/pkg

API and Components which are exposed for external usage.

  • /pkg/repository
    Control layer for coordinating connections and communication with storage provider repositories.

  • /pkg/storage
    Manages compilation and validation of repository configuration and consts. Both those that are specific to storage providers, and those that are provider-agnostic.


/cli

Command Line Interface controller. Utilizes /pkg/repository as an external dependency.


/internal

Packages which are only intended for use within Corso.