Skip to content

Commit 58e0dfe

Browse files
authored
chore(packaging): drop snapcraft support (#4811)
* chore(packaging): drop snapcraft support * cl
1 parent d9b9a1e commit 58e0dfe

File tree

8 files changed

+12
-119
lines changed

8 files changed

+12
-119
lines changed

.github/workflows/release-snapcraft.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PROJECT_NAME = ignite
55
DATE := $(shell date '+%Y-%m-%dT%H:%M:%S')
66
HEAD = $(shell git rev-parse HEAD)
7-
LD_FLAGS =
7+
LD_FLAGS =
88
BUILD_FLAGS = -mod=readonly -ldflags='$(LD_FLAGS)'
99
BUILD_FOLDER = ./dist
1010

@@ -20,10 +20,6 @@ build:
2020
@-mkdir -p $(BUILD_FOLDER) 2> /dev/null
2121
@go build $(BUILD_FLAGS) -o $(BUILD_FOLDER) ./...
2222

23-
## prepare snapcraft config for release
24-
snapcraft:
25-
@sed -i 's/{{version}}/'$(version)'/' packaging/snap/snapcraft.yaml
26-
2723
## mocks: generate mocks
2824
mocks:
2925
@echo Generating mocks

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Informational
6+
7+
From this version on, Snapcraft support has been removed. Please migrate to [Homebrew](https://brew.sh/) for a better experience. Homebrew works for both macOS and GNU/Linux.
8+
59
## [`v29.4.1`](https://github.com/ignite/cli/releases/tag/v29.4.1)
610

711
### Changes

docs/docs/01-welcome/02-install.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ To install the latest version of Ignite use [HomeBrew](https://formulae.brew.sh/
4242
brew install ignite
4343
```
4444

45-
Or use Snap on GNU/Linux:
46-
47-
```sh
48-
snap install ignite --classic
49-
```
50-
5145
### Install manually
5246

5347
Alternatively, you can install the latest version of the `ignite` binary use the following command:
@@ -57,7 +51,7 @@ curl https://get.ignite.com/cli! | bash
5751
```
5852

5953
This command invokes `curl` to download the installation script and pipes the output to `bash` to perform the
60-
installation. The `ignite` binary is installed in `/usr/local/bin`.
54+
installation. The `ignite` binary is installed in `/usr/local/bin`.
6155

6256
Ignite CLI installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because
6357
you do not have write permission to `/usr/local/bin/`, run the following command:
@@ -100,7 +94,7 @@ To remove the current Ignite CLI installation:
10094
Depending on your user permissions, run the command with or without `sudo`.
10195
3. Repeat this step until all `ignite` installations are removed from your system.
10296

103-
After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli)
97+
After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli)
10498
instructions.
10599

106100
For details on version features and changes, see

docs/versioned_docs/version-v29/01-welcome/02-install.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ To install the latest version of Ignite use [HomeBrew](https://formulae.brew.sh/
4242
brew install ignite
4343
```
4444

45-
Or use Snap on GNU/Linux:
46-
47-
```sh
48-
snap install ignite --classic
49-
```
50-
5145
### Install manually
5246

5347
Alternatively, you can install the latest version of the `ignite` binary use the following command:
@@ -57,7 +51,7 @@ curl https://get.ignite.com/cli! | bash
5751
```
5852

5953
This command invokes `curl` to download the installation script and pipes the output to `bash` to perform the
60-
installation. The `ignite` binary is installed in `/usr/local/bin`.
54+
installation. The `ignite` binary is installed in `/usr/local/bin`.
6155

6256
Ignite CLI installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because
6357
you do not have write permission to `/usr/local/bin/`, run the following command:
@@ -100,7 +94,7 @@ To remove the current Ignite CLI installation:
10094
Depending on your user permissions, run the command with or without `sudo`.
10195
3. Repeat this step until all `ignite` installations are removed from your system.
10296

103-
After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli)
97+
After all existing Ignite CLI installations are removed, follow the [Installing Ignite CLI](#installing-ignite-cli)
10498
instructions.
10599

106100
For details on version features and changes, see

packaging/readme.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
11
# Packaging and Distributing Ignite
22

3-
Ignite CLI is distributed on multiple platforms and package managers. This document describes how to package and distribute Ignite CLI.
4-
5-
## Snap
6-
7-
Read the following resources to understand Snap.
8-
9-
* <https://snapcraft.io/docs/snapcraft-overview>
10-
* <https://snapcraft.io/docs/go-plugin#heading--core22>
11-
* <https://snapcraft.io/docs/go-applications>
12-
13-
```bash
14-
cd packaging/snap
15-
sudo apt install snapd
16-
sudo snap install multipass
17-
multipass launch
18-
SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft
19-
snap install ignite_0.0.0_amd64.snap --dangerous --classic
20-
```
21-
22-
For building, from snapcraft 8, use `SNAPCRAFT_REMOTE_BUILD_STRATEGY=force-fallback snapcraft remote-build`.
23-
24-
A [github action](../.github/workflows/release-binary.yml) is used to build and publish the Snap at each release.
3+
Ignite CLI is distributed on package managers. This document describes how to package and distribute Ignite CLI.
254

265
## HomeBrew
276

287
Read the following resources to understand HomeBrew.
298

30-
* <https://docs.brew.sh/>
31-
* <https://docs.brew.sh/Formula-Cookbook>
9+
- <https://docs.brew.sh/>
10+
- <https://docs.brew.sh/Formula-Cookbook>
3211

3312
```bash
3413
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --interactive ignite

packaging/snap/snapcraft.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

readme.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ Install Ignite using [Homebrew](https://formulae.brew.sh/formula/ignite) on macO
4848
brew install ignite
4949
```
5050

51-
Or using Snap on GNU/Linux:
52-
53-
```sh
54-
snap install ignite --classic
55-
```
56-
5751
Or manually using the following command:
5852

5953
```sh

0 commit comments

Comments
 (0)