Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change lincense/gen/main.go to skip shebang #2313

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .devcontainer/postAttachCommand.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
#!/bin/bash -eu

#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# 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
#
# https://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.
#
:

#
# This script is executed as postAttachCommand in devcontainer.json
# This script does...
# - create symbolic link of config.yaml for easier development
# - add command history setting to .zshrc to persist history
#

echo "creating symbolic link of config ZSHRC..."
echo "creating symbolic link of config..."

LINK_TARGET="$(pwd)/cmd/agent/core/ngt/sample.yaml"
LINK_SRC="/etc/server/config.yaml"
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/issue-metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# 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
#
# https://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.
#
name: Monthly review time metrics
on:
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion hack/license/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ func readAndRewrite(path string) error {
for sc.Scan() {
line := sc.Text()
if filepath.Ext(path) == ".go" && strings.HasPrefix(line, "//go:") ||
filepath.Ext(path) == ".py" && strings.HasPrefix(line, "# -*-") {
filepath.Ext(path) == ".py" && strings.HasPrefix(line, "# -*-") ||
filepath.Ext(path) == ".sh" && strings.HasPrefix(line, "#!") {
bf = true
_, err = buf.WriteString(line)
if err != nil {
Expand Down
Loading