Afan417 / blogo-starter-kit

Blogo is a free Statamic Starter Kit, designed to provide a highly customized Statamic experience.
https://blogo.afanajdari.com
14 stars 4 forks source link

Problems updating #6

Closed mynetx closed 3 days ago

mynetx commented 2 months ago

Hello there,

Whenever I try to update to Laravel 11, I get this error:

  • Root composer.json requires afan417/blogo-starter-kit *, found afan417/blogo-starter-kit[v1.2] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.

Would you know why this happens?

This is my composer.json:

{
    "name": "statamic/statamic",
    "description": "Statamic",
    "keywords": [
        "statamic",
        "cms",
        "flat file",
        "laravel"
    ],
    "type": "project",
    "require": {
        "php": "^8.1",
        "ext-dom": "*",
        "cocur/slugify": "^4.5",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^10.8",
        "laravel/sanctum": "^3.2",
        "laravel/tinker": "^2.8",
        "league/flysystem-aws-s3-v3": "^3.0",
        "spatie/laravel-data": "^3.9",
        "spatie/laravel-ray": "^1.33",
        "statamic-rad-pack/runway": "^7.1",
        "statamic/cms": "^5.0",
        "symfony/dom-crawler": "^7.0",
        "symfony/yaml": "^6.4"
    },
    "require-dev": {
        "afan417/blogo-starter-kit": "^1.2",
        "barryvdh/laravel-debugbar": "^3.8.1",
        "fakerphp/faker": "^1.9.1",
        "laravel-lang/common": "^6.3",
        "laravel/breeze": "^1.29",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.18",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^7.0",
        "pestphp/pest": "^2.0",
        "pestphp/pest-plugin-drift": "^2.5",
        "pestphp/pest-plugin-laravel": "^2.0",
        "spatie/laravel-ignition": "^2.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "composer/package-versions-deprecated": true,
            "pestphp/pest-plugin": true,
            "php-http/discovery": true,
            "pixelfear/composer-dist-plugin": true
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "pre-update-cmd": [
            "Statamic\\Console\\Composer\\Scripts::preUpdateCmd"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi",
            "@php artisan statamic:install --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ]
    }
}
Afan417 commented 1 month ago

Hello there @mynetx,

Apologies for the late reply. I recently added support for Statamic 5. Check it out (here's the release tag: https://github.com/Afan417/blogo-starter-kit/releases/tag/v1.3)

Try updating your composer.json, specifically this line:

"afan417/blogo-starter-kit": "^1.2", to

"afan417/blogo-starter-kit": "^1.3",

and you should be good to go. Let me know if any problems arise.

Cheers.

mynetx commented 1 month ago

Thanks for your work and the update! I think one problem was that there was no Packagist package for this repo anymore. I added one, and if you could re-add the webhooks to enable auto updates when you tag a release, I’ll gladly transfer ownership. 🙂

https://packagist.org/packages/afan417/blogo-starter-kit

Afan417 commented 3 weeks ago

Hey @mynetx,

Starter Kits are not meant to be updated, although you can update them by checking the diffs in the Releases tab.

You can read more about the differences between Starter Kits and Addons in the official Statamic documentation here.

Thanks!