discourse: Add aarch64-linux to the list of platforms to be removed

...in the update script and remove it from the Gemfile.lock. Having
it there causes a failure with the error message:

Could not find libv8-node-16.10.0.0-aarch64-linux in any of the
sources (Bundler::GemNotFound)

And since we're not using the prebuilt binary packages anyway, we
don't need it there in the first place.
This commit is contained in:
talyz 2021-12-22 14:22:12 +01:00
parent 50832be998
commit 1138af5637
No known key found for this signature in database
GPG key ID: 2DED2151F4671A2B
2 changed files with 1 additions and 3 deletions

View file

@ -198,7 +198,6 @@ GEM
jwt (2.3.0)
kgio (2.11.4)
libv8-node (16.10.0.0)
libv8-node (16.10.0.0-aarch64-linux)
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
@ -466,7 +465,6 @@ GEM
zeitwerk (2.5.1)
PLATFORMS
aarch64-linux
ruby
DEPENDENCIES

View file

@ -164,7 +164,7 @@ def _diff_file(filepath: str, old_version: DiscourseVersion, new_version: Discou
def _remove_platforms(rubyenv_dir: Path):
for platform in ['arm64-darwin-20', 'x86_64-darwin-18',
'x86_64-darwin-19', 'x86_64-darwin-20',
'x86_64-linux']:
'x86_64-linux', 'aarch64-linux']:
with open(rubyenv_dir / 'Gemfile.lock', 'r') as f:
for line in f:
if platform in line: