Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We add <OS>_<Platform> blocks to the installer; these override the <OS> and "all" blocks (in that order). This allows us to download different binaries for different platforms, but for mostly the configuration to remain per-OS. This works on arm64 Mac and in the docker container on linux arm64 (sort of; there's some bug where 'love' won't install in the container).
- Loading branch information
1 parent
14fc109
commit fb752df
Showing
10 changed files
with
2,937 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# vimspector - A multi-language debugging system for Vim | ||
# Copyright 2021 Ben Jackson | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import functools | ||
|
||
MEMO = {} | ||
|
||
|
||
def memoize( func ): | ||
global MEMO | ||
|
||
@functools.wraps( func ) | ||
def wrapper( *args, **kwargs ): | ||
dct = MEMO.setdefault( func, {} ) | ||
key = ( args, frozenset( kwargs.items() ) ) | ||
try: | ||
return dct[ key ] | ||
except KeyError: | ||
result = func( *args, **kwargs ) | ||
dct[ key ] = result | ||
return result | ||
|
||
return wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.