Support late-binding of tasks with batch command
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
it seems theres an issue in version 1.4.0.
While defining batch tasks at the beginning of an Rexfile the following error occurs:
[2016-04-11 11:32:00] ERROR - Compile time errors:
[2016-04-11 11:32:00] ERROR - ERROR: no task: install at /opt/local/lib/perl5/site_perl/5.22/Rex/Batch.pm line 27, <> line 1.
[2016-04-11 11:32:00] ERROR - Compilation failed in require at /opt/local/lib/perl5/site_perl/5.22/Rex/CLI.pm line 747, <> line 1.
Workaround:
Defining batch tasks at the end of the Rexfile.
Best Regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure when batch tasks are defined near the beginning of the Rexfile, using the reported no-task error from Rex/Batch.pm. Read Rex/Batch.pm and the related loading path in Rex/CLI.pm; done means the same batch task definition works without the compilation error, while definitions at the end continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100