Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #176 from juanjux/fix/pb_files
Browse files Browse the repository at this point in the history
Regenerate pb files
  • Loading branch information
juanjux authored Sep 22, 2017
2 parents 5fb8c68 + 4426664 commit b3ef83f
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 261 deletions.
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,10 @@ $ go generate

It regenerates all *[proto](https://developers.google.com/protocol-buffers/)* and *[proteus](https://github.com/src-d/proteus)* files under *[protocol/](https://github.com/bblfsh/sdk/tree/master/protocol)* and *[uast/](https://github.com/bblfsh/sdk/tree/master/uast)* directories.

These auto generated files shouldn't be edited by hand, however at the moment, you have to manually add a license header:

```
// Copyright 2017 Sourced Technologies SL
// 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.
```

It's necessary to modify *[protocol/generated.pb.go](https://github.com/bblfsh/sdk/blob/master/protocol/generated.pb.go)* too to change an import:
These auto generated files shouldn't be edited by hand, however at the moment,
tt's necessary to modify
*[protocol/generated.pb.go](https://github.com/bblfsh/sdk/blob/master/protocol/generated.pb.go)*
too to change an import:

```go
import github_com_bblfsh_sdk_uast "github.com/bblfsh/sdk/uast"
Expand Down
11 changes: 0 additions & 11 deletions protocol/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions protocol/generated.proto
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
// Copyright 2017 Sourced Technologies SL
// 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.

syntax = "proto3";
package gopkg.in.bblfsh.sdk.v1.protocol;

Expand Down
Loading

0 comments on commit b3ef83f

Please sign in to comment.