Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Run CPAN distribution.

Report information
The Basics
Id: 106362
Status: rejected
Priority: 0/
Queue: Dist-Zilla-Plugin-Run

People
Owner: Nobody in particular
Requestors: VDB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.042
Fixed in: (no value)



Subject: Trial status is not detected?
cat dist.ini name = RunShell abstract = RunShell demo version = 0.001_001 [Run::BeforeBuild] run = echo "1. begin" run_if_release = echo "2. release" run_no_release = echo "3. not release" run_if_trial = echo "4. trial" run_no_trial = echo "5. not trial" run = echo "6. end" [GenerateFile/Assa.pm] filename = lib/Assa.pm content = package Assa; 1; [FakeRelease] $ dzil build [Run::BeforeBuild] executing: echo "1. begin" [Run::BeforeBuild] 1. begin [Run::BeforeBuild] executing: echo "6. end" [Run::BeforeBuild] 6. end [Run::BeforeBuild] executing: echo "5. not trial" [Run::BeforeBuild] 5. not trial [Run::BeforeBuild] executing: echo "3. not release" [Run::BeforeBuild] 3. not release [DZ] beginning to build RunShell [DZ] writing RunShell in RunShell-0.001_001 [DZ] building archive with Archive::Tar::Wrapper [DZ] writing archive to RunShell-0.001_001-TRIAL.tar.gz [DZ] built in RunShell-0.001_001 Note: Archive name is RunShell-0.001_001-TRIAL.tar.gz. It explicitly states the trial build. However, [Run::BefireBuild] says "5. not trial". Dist::Zilla 5.038, Run v0.042.
On 2015-08-11 02:22:58, VDB wrote: Show quoted text
> Note: Archive name is RunShell-0.001_001-TRIAL.tar.gz. It explicitly > states the trial build. However, [Run::BefireBuild] says "5. not > trial". > > Dist::Zilla 5.038, Run v0.042.
This is not a problem with the plugin. If you look at the code, you will see it just looks at the 'is_trial' attribute in the zilla object itself. It is that determination of trial status that you need to look at, since you are not passing it explicitly with "dzil build --trial".