Ensure Local Availability of Repositories Before Execution #1379

Open
opened 2024-10-02 21:09:39 +02:00 by jotaherrera · 0 comments
jotaherrera commented 2024-10-02 21:09:39 +02:00 (Migrated from github.com)

The command m <repo> <job> fetches the repository and executes the job, but it doesn't make the repository locally available. This is problematic because, for parity, the repository should be locally accessible during the execution of the command.

Expected Behavior

  1. Fetch the repository.
  2. Make it available in a temporary directory.
  3. Change to that directory.
  4. Execute the job within the temporary repository.

Steps to Reproduce

  1. Run the command: m <repo> <job>.
  2. Observe that while the job runs, the repository is not accessible locally, resulting in a lack of context.

Suggested Fix

Modify the command behavior so that the repository is fetched and made available in a temporary directory, with the job running in that local context.

The command `m <repo> <job>` fetches the repository and executes the job, but it doesn't make the repository locally available. This is problematic because, for parity, the repository should be locally accessible during the execution of the command. ### Expected Behavior 1. Fetch the repository. 2. Make it available in a temporary directory. 3. Change to that directory. 4. Execute the job within the temporary repository. ### Steps to Reproduce 1. Run the command: `m <repo> <job>`. 2. Observe that while the job runs, the repository is not accessible locally, resulting in a lack of context. ### Suggested Fix Modify the command behavior so that the repository is fetched and made available in a temporary directory, with the job running in that local context.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
justin/makes#1379
No description provided.