summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbremner <bremner@web>2008-08-31 15:47:01 -0400
committerJoey Hess <joey@kitenet.net>2008-08-31 15:47:01 -0400
commitf7ad016a3f0b4fe4461c1a7c274d9170e84a39a5 (patch)
tree35dc5cfb30686bd4c52ad7fea7714dd4da3ecd42
parent57dd3268b7ffe9b0f537036d5886bf0d5faa25bb (diff)
report trouble trying to use IkiWiki::Setup::load outside ikiwiki
-rw-r--r--doc/bugs/IkiWiki::Setup::load__40____41___broken_outside_ikiwiki__63__.mdwn14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/bugs/IkiWiki::Setup::load__40____41___broken_outside_ikiwiki__63__.mdwn b/doc/bugs/IkiWiki::Setup::load__40____41___broken_outside_ikiwiki__63__.mdwn
new file mode 100644
index 000000000..a7ad54d60
--- /dev/null
+++ b/doc/bugs/IkiWiki::Setup::load__40____41___broken_outside_ikiwiki__63__.mdwn
@@ -0,0 +1,14 @@
+Hmm, according to the docs, shouldn't the following work?
+<pre>
+[ 74 ikipostal/test ] ikiwiki --dumpsetup out.setup foo bar
+[ 75 ikipostal/test ] perl -MIkiWiki::Setup -e'IkiWiki::Setup::load("out.setup");'
+out.setup: Can't use an undefined value as an ARRAY reference at /usr/share/perl5/IkiWiki/Setup.pm line 37.
+BEGIN failed--compilation aborted at (eval 15) line 233.
+</pre>
+
+From looking at the code, it seems that a global hash %config should be
+initialized somehow.
+
+This is in ikiwiki 2.62.1. I think this call used to work in 2.54 (when you first refactored the setup IIRC)
+
+[[DavidBremner]]