Skip to content

Commit

Permalink
Upgrade to dotnet 7
Browse files Browse the repository at this point in the history
  • Loading branch information
lextatic committed Jan 5, 2023
1 parent 4e5b040 commit 7630633
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 19 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Drone CI enhancements
- Config generator tool now supports Drone CI
- Added information about how to change trigger rules for Drone CI workflow

- Fix perl linter skipping files

- Upgrade to dotnet 6.0 + `list_of_files` for dotnet-format CLI lint mode to improve performances (requires `.csproj` or `.vbproj` in the repo)
- Upgrade to dotnet 7.0, dotnet-format requires `.sln`, `.csproj` or `.vbproj` in the repo

- Linter versions upgrades
- [csharpier](https://csharpier.com/) from 0.21.0 to **0.16.0** on 2022-12-29
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ RUN rc-update add docker boot && rc-service docker start || true \
# CSHARP installation
&& wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand Down Expand Up @@ -366,7 +366,7 @@ RUN mkdir -p ${PWSH_DIRECTORY} \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
# && chmod +x dotnet-install.sh \
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
# Next line commented because already managed by another linter
# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand Down Expand Up @@ -544,7 +544,7 @@ ENV PATH="~/.raku/bin:/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
# && chmod +x dotnet-install.sh \
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
# Next line commented because already managed by another linter
# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI \
Expand Down Expand Up @@ -601,7 +601,7 @@ RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
# && chmod +x dotnet-install.sh \
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
# Next line commented because already managed by another linter
# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
&& dotnet tool install --global TSQLLint \
Expand Down
6 changes: 3 additions & 3 deletions flavors/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ RUN mkdir -p ${PWSH_DIRECTORY} \
# CSHARP installation
&& wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand All @@ -255,7 +255,7 @@ RUN mkdir -p ${PWSH_DIRECTORY} \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
# && chmod +x dotnet-install.sh \
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
# Next line commented because already managed by another linter
# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand Down Expand Up @@ -362,7 +362,7 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
# Next line commented because already managed by another linter
# RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
# && chmod +x dotnet-install.sh \
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
# && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
# Next line commented because already managed by another linter
# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
&& dotnet tool install --global TSQLLint
Expand Down
2 changes: 1 addition & 1 deletion flavors/security/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# devskim installation
&& wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI \
Expand Down
2 changes: 1 addition & 1 deletion linters/csharp_dotnet_format/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ENV PATH="/node_modules/.bin:${PATH}"
# CSHARP installation
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand Down
2 changes: 1 addition & 1 deletion linters/repository_devskim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
# devskim installation
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI
Expand Down
2 changes: 1 addition & 1 deletion linters/sql_tsqllint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ENV PATH="/node_modules/.bin:${PATH}"
# tsqllint installation
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
RUN dotnet tool install --global TSQLLint
Expand Down
2 changes: 1 addition & 1 deletion linters/vbdotnet_dotnet_format/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ENV PATH="/node_modules/.bin:${PATH}"
# VBDOTNET installation
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"

Expand Down
2 changes: 1 addition & 1 deletion megalinter/descriptors/csharp.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
- |
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
- ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
linters:
# DOTNET FORMAT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ linters:
- |
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
- ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
- RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI
ide:
Expand Down
2 changes: 1 addition & 1 deletion megalinter/descriptors/sql.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ linters:
- |
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
- ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
- RUN dotnet tool install --global TSQLLint
ide:
Expand Down
2 changes: 1 addition & 1 deletion megalinter/descriptors/vbdotnet.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
- |
RUN wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 6.0 -version latest
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel 7.0 -version latest
- ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
linters:
# DOTNET FORMAT
Expand Down

0 comments on commit 7630633

Please sign in to comment.