Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

.fpm flags are appended after regular command line flags/arguments, resulting in error #615

Closed
leandro-lucarella-sociomantic opened this Issue Jan 7, 2014 · 1 comment

Comments

Projects
None yet
1 participant

The error message is: All flags should be before the first argument (stray flags found: xxx)

Just create a .fpm file with a flag and then call fpm file.

On Tue, Jan 07, 2014 at 12:44:04PM -0800, Jordan Sissel wrote:

Closed #615 via 1f764b8.

Thanks!

gerbercj added a commit to gerbercj/fpm that referenced this issue Feb 27, 2014

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

gerbercj added a commit to gerbercj/fpm that referenced this issue Mar 11, 2014

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

gerbercj added a commit to gerbercj/fpm that referenced this issue Apr 25, 2014

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

jordansissel added a commit that referenced this issue Apr 24, 2015

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello

jordansissel added a commit that referenced this issue Jun 20, 2016

Properly make the args ordering be $HOME/.fpm, $PWD/.fpm, CLI args
This fixes #615

    % cat .fpm
    --maintainer "Hello"
    % fpm -s dir -t rpm -n fizzle ~/.zshrc
    Loading flags from rc file .fpm {:level=>:warn}
    {:args=>["--maintainer", "Hello", "-s", "dir", "-t", "rpm", "-n", "fizzle", "/home/jls/.zshrc"]}
    no value for epoch is set, defaulting to nil {:level=>:warn}
    File already exists, refusing to continue: fizzle-1.0-1.x86_64.rpm
    {:level=>:fatal}
    % rpm -qip fizzle-1.0-1.x86_64.rpm| grep Packager
    Packager    : Hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment