mfoemmel / fig

Fig is a utility for configuring environments and managing dependencies across a team of developers.
Other
81 stars 13 forks source link

"-c" does not work for publishing -- default config not changed, and a subsequent "fig -u" gives a stack overflow #39

Closed walquis closed 14 years ago

walquis commented 14 years ago

Using fig 0.1.14, and given this package.fig...

resource drw.jetlang.core.jar

config default
        include drw.jetlang.core-linux-pub/1.0.0
end

config dist
        append CLASSPATH=@/drw.jetlang.core.jar
end

...a "fig --publish drw.jetlang.core-linux-pub/1.0.0 -c dist" simply publishes the entire package.fig. When a "fig -u" is run, fig crashes because drw.jetlang.core-linux-pub's config is "default" rather than "dist", and it includes itself ad infinitum.

jramnani commented 14 years ago

The stack overflow is caused by including yourself. That is a circular dependency, which Fig doesn't break out of, yet.

I'm not sure if the --config option works with --publish.