Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Temporary fix for @*INC breakage
  • Loading branch information
lizmat committed May 4, 2015
1 parent 0d32a40 commit df8c11e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Panda/App.pm
Expand Up @@ -34,7 +34,7 @@ sub make-default-ecosystem is export {
# files that depend on the modules we just installed break).
#
# If this is already in @*INC, it doesn't harm anything to re-add it.
@*INC.push($destdir~'/lib');
@*INC.push("file#" ~ $destdir ~ '/lib'); # TEMPORARY !!!

return Panda::Ecosystem.new(
statefile => "$pandadir/state",
Expand Down
2 changes: 1 addition & 1 deletion lib/Panda/Builder.pm
Expand Up @@ -71,7 +71,7 @@ sub build-order(@module-files) {
method build($where, :$bone) {
indir $where, {
if "Build.pm".IO.f {
@*INC.push($where);
@*INC.push("file#$where"); # TEMPORARY !!!
GLOBAL::<Build>:delete;
require 'Build.pm';
if ::('Build').isa(Panda::Builder) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Panda/Tester.pm
Expand Up @@ -5,7 +5,7 @@ method test($where, :$bone, :$prove-command = 'prove') {
indir $where, {
my Bool $run-default = True;
if "Build.pm".IO.f {
@*INC.push('.');
@*INC.push('file#.'); # TEMPORARY !!!
GLOBAL::<Build>:delete;
require 'Build.pm';
if ::('Build').isa(Panda::Tester) {
Expand Down

0 comments on commit df8c11e

Please sign in to comment.