Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer overwritten after self-update #83

Open
jamesj2 opened this issue May 28, 2015 · 1 comment
Open

composer overwritten after self-update #83

jamesj2 opened this issue May 28, 2015 · 1 comment
Labels

Comments

@jamesj2
Copy link

jamesj2 commented May 28, 2015

I upgraded to version 1.3.7 because composer wasn't getting automatically updated. After replacing the require ::composer with include ::composer in the selfupdate define I was able to get around the dependency cycle. Then I realized selfupdate was running but then it would be overwritten with the file stored in the /tmp directory. To fix this behaviour I added a replace=>false attribute to the file copy. Also it doesn't make sense if selfupdate runs before installing composer. Maybe I'm using it wrong. I simply call the composer class with a couple params provided by hiera.

    # move file to target_dir
    file { "${target_dir}/${composer_file}":
      ensure    => present,
      source    => "${tmp_path}/composer.phar",
      require   => [ Exec['download_composer'], File[$target_dir] ],
      mode      => '0755',
      replace   => false
    }
classes:
  - composer

composer::user: nobody
composer::auto_update: true
composer::php_package: "php-5.4-bin-zend-server"
@tPl0ch tPl0ch added the bug label May 29, 2015
@ftzdomino
Copy link
Contributor

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants