Git Product home page Git Product logo

salahhusa9 / laravel-updater Goto Github PK

View Code? Open in Web Editor NEW
170.0 170.0 18.0 1.79 MB

Laravel Updater is a simple yet powerful package for updater your Laravel applications. It makes it easy to upgrade your application to the latest version with just one command.

Home Page: https://salahhusa9.com/laravel-updater

License: MIT License

PHP 100.00%
laravel laravel-updater package packages php updater

laravel-updater's Introduction

Hi ๐Ÿ‘‹, I'm Salah eddine Bendyab

A passionate backend developer from Morocco

coding

salahhusa9

Connect with me:

salah-eddine-bendyab salaheddine.bendyab.7

Languages and Tools:

bash bootstrap css3 git html5 javascript laravel linux mongodb mysql php postman tailwind webpack xd

salahhusa9

ย salahhusa9

salahhusa9

salahhusa9

laravel-updater's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar renovate[bot] avatar salahhusa9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-updater's Issues

Make it work with Laravel 11.9 and symfony/process v7.1.0 in composer.json

What happened?

When I run composer require salahhusa9/laravel-updater I got this error:

  • salahhusa9/laravel-updater[v0.0.1, v1.0.0, ..., v1.0.2] require illuminate/contracts ^10.0 -> found illuminate/contracts[v10.0.0, ..., v10.48.12] but these were not loaded, likely because it conflicts with another require.
    • salahhusa9/laravel-updater[v1.1.0, ..., v1.2.0] require symfony/process ^6.3 -> found symfony/process[v6.3.0, ..., v6.4.8] but the package is fixed to v7.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    • Root composer.json requires salahhusa9/laravel-updater * -> satisfiable by salahhusa9/laravel-updater[v0.0.1, v1.0.0, ..., v1.2.0].

How to reproduce the bug

Install Laravel 11.9.2 and then install the package.

Package Version

2.0.0

PHP Version

8.3.6

Laravel Version

11.9.2

Which operating systems does with happen with?

Linux

Notes

thanks

Docs pages not found [Bug]:

What happened?

In the docs website, page for 'Pipelines' and 'advance use' in after update section respond to 404.

image

How to reproduce the bug

Go to update section and click the links

Package Version

0

PHP Version

0

Laravel Version

0

Which operating systems does with happen with?

Windows

Notes

No response

[Bug]: Errors while trying to update

What happened?

I cant make php artisan updater:update work

How to reproduce the bug

Just use the command

Package Version

0.1

PHP Version

8.2

Laravel Version

9

Which operating systems does with happen with?

Linux

Notes

Hello.. This is the error! Thanks

 fatal: No names found, cannot describe anything.

  at vendor/salahhusa9/laravel-updater/src/Helpers/Git.php:58
     54โ–•     {
     55โ–•         $process = Process::run(self::gitPath().' describe --tags --abbrev=0');
     56โ–•
     57โ–•         if ($process->failed()) {
  โžœ  58โ–•             throw new \Exception($process->errorOutput());
     59โ–•         }
     60โ–•
     61โ–•         return trim($process->output());
     62โ–•     }

      +16 vendor frames

  17  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

[Bug]: cant publish assets

What happened?

running php artisan vendor:publish --tag="laravel-updater-config" doesn't publish the assets:
image

instead, running php artisan vendor:publish --provider="Salahhusa9\Updater\UpdaterServiceProvider" did the job:
image

a fix has been pushed #33, the documentation should be updated too

How to reproduce the bug

run php artisan vendor:publish --tag="laravel-updater-config"

Package Version

1.0

PHP Version

8.2.14

Laravel Version

10.41.0

Which operating systems does with happen with?

Linux

Notes

No response

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

composer
composer.json
  • php ^8.1|^8.2
  • guzzlehttp/guzzle ^7.8
  • illuminate/contracts ^10.0|^11.0
  • spatie/laravel-package-tools ^1.0
  • symfony/process ^6.3|^7.0
  • laravel/pint ^1.0
  • nunomaduro/collision ^7.8|^8.0
  • nunomaduro/larastan ^2.0.1
  • orchestra/testbench ^8.0|^9.0
  • pestphp/pest ^2.20
  • pestphp/pest-plugin-arch ^2.0
  • pestphp/pest-plugin-laravel ^2.0
github-actions
.github/workflows/dependabot-auto-merge.yml
  • dependabot/fetch-metadata v2.1.0
.github/workflows/deploy-docs.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v4
  • actions/upload-pages-artifact v3
  • actions/deploy-pages v4
.github/workflows/fix-php-code-style-issues.yml
  • actions/checkout v4
  • aglipanci/laravel-pint-action 2.4
  • stefanzweifel/git-auto-commit-action v5
.github/workflows/run-tests.yml
  • actions/checkout v4
  • shivammathur/setup-php v2
.github/workflows/update-changelog.yml
  • actions/checkout v4
  • stefanzweifel/changelog-updater-action v1
  • stefanzweifel/git-auto-commit-action v5

  • Check this box to trigger a request for Renovate to run again on this repository

[Bug]: git fetch fails with getaddrinfo() thread failed to start

What happened?

I'm trying to use Updater::update() however it fails.
image
However the update works fine if you use the terminal command.
image

How to reproduce the bug

Use Updater::update() on windows.

Package Version

latest

PHP Version

8.2.12

Laravel Version

10

Which operating systems does with happen with?

Windows

Notes

The Update::update() works fine in my linux machine but it fails on my teammate who uses windows.

[QUESTION]: how to do composer install and a roll back feature?

Description

I have the following questions:

  • How can I do a composer install for cases the latest release requires a new package?
  • How can I implement a roll back feature? (is there an option where I can select which version to update to instead of just automatically updating to the latest?)

Publish of config file doesn't work

What happened?

The documentation says to run
php artisan vendor:publish --tag="laravel-updater-config"
to publish the config file but it doesn't work.
The error is :

"No publishable resources for tag [laravel-updater-config]."

How to reproduce the bug

Install Laravel 11, the package and run the command
php artisan vendor:publish --tag="laravel-updater-config"

Package Version

1.2

PHP Version

8.3.6

Laravel Version

11

Which operating systems does with happen with?

Linux

Notes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.